J
Jim T
New at FrontPage/ASP but gaining ground. I'm writing an application and am
woring on a page that retrieves data from an Access DB. I'm getting the data
fine and would like to display it in a series of tables. I've written code to
Response.Write the HTML lines for a form and the table. I designed the table
in FP2000 with the cell widths I want for the Access data field values, bold,
and color for the data cells. Likewise I set the color and other attributes
(size, italic) for the cells containing labels. (Note some cells have also
been merged).
In the table tag, I've set the width in pixels and table-layout as fixed.
The code for the table row also specifies the width in pixels.
I have code in the ASP page to retrieve the rows of fata and response.write
a table for each row (usually 2-4 rows based on the criteria) in a While
loop. This part is working fine.
Problem 1: The cells widths do not remain fixed so from one table on the
page to the next the table appearance is not consistant (i.e. each cell in
the table expands/contracts according to the lenght of the DB data filling
the cell)
Problem 2: The color attributes are not coming through. I have the labels
colored blue and the data colored red; everything however is black.
Problem 3: The table is inside a form and I would like to include a submit
button in the top left corner cell (or just below the table) so the user can
select the data in the table to jump to another ASP page that will contain
data from an associated (detail data) table relative to that record. In the
FrontPage layout I included a submit button and used the HTML line in my code
for each table written. However the resulting input
on the displayed page is not a button but an input text field.
Other: Can I use VB's Chr(34) in place to the multiple """"; if so will a
single Chr(34) do the trick?
Heres examples of lines of code I'm using:
Response.Write "<div style=""""width:1382; height:100; overflow:auto;
border:""""id=""""dataList"""">"
Response.Write "<table table-layout:""""fixed"""" border=""""1""""
width=""""1382"""" height=""""182"""">"
Response.Write "<td width=""""187"""" height=""""26""""><b><font
color=""""#FF0000"""" size=""""4"""">" & mapno & "</font></b></td>"
(note; mapno is a variable/field from the DB)
Response.Write "<p><input type=""""submit"""" value=""""Property Data""""
name=""""B1""""></p>"
Being new at this I'm sure there are better ways so any help would be
appreciated.
woring on a page that retrieves data from an Access DB. I'm getting the data
fine and would like to display it in a series of tables. I've written code to
Response.Write the HTML lines for a form and the table. I designed the table
in FP2000 with the cell widths I want for the Access data field values, bold,
and color for the data cells. Likewise I set the color and other attributes
(size, italic) for the cells containing labels. (Note some cells have also
been merged).
In the table tag, I've set the width in pixels and table-layout as fixed.
The code for the table row also specifies the width in pixels.
I have code in the ASP page to retrieve the rows of fata and response.write
a table for each row (usually 2-4 rows based on the criteria) in a While
loop. This part is working fine.
Problem 1: The cells widths do not remain fixed so from one table on the
page to the next the table appearance is not consistant (i.e. each cell in
the table expands/contracts according to the lenght of the DB data filling
the cell)
Problem 2: The color attributes are not coming through. I have the labels
colored blue and the data colored red; everything however is black.
Problem 3: The table is inside a form and I would like to include a submit
button in the top left corner cell (or just below the table) so the user can
select the data in the table to jump to another ASP page that will contain
data from an associated (detail data) table relative to that record. In the
FrontPage layout I included a submit button and used the HTML line in my code
for each table written. However the resulting input
on the displayed page is not a button but an input text field.
Other: Can I use VB's Chr(34) in place to the multiple """"; if so will a
single Chr(34) do the trick?
Heres examples of lines of code I'm using:
Response.Write "<div style=""""width:1382; height:100; overflow:auto;
border:""""id=""""dataList"""">"
Response.Write "<table table-layout:""""fixed"""" border=""""1""""
width=""""1382"""" height=""""182"""">"
Response.Write "<td width=""""187"""" height=""""26""""><b><font
color=""""#FF0000"""" size=""""4"""">" & mapno & "</font></b></td>"
(note; mapno is a variable/field from the DB)
Response.Write "<p><input type=""""submit"""" value=""""Property Data""""
name=""""B1""""></p>"
Being new at this I'm sure there are better ways so any help would be
appreciated.