DataList Table Layout

W

Wayne Wengert

I have an aspx page I originzlly built in WebMatrix that includes a
"<table>" structure to layout the columns using "<tr>" and "<td>" elements
(see sample below). When I create a new aspx form in my VSNE2003 solution,
add a datalist component with table layout and paste that code, it doesn't
like the table related tags (<table>, <tr>, etc.). Using VSNET2003 what is
the correct way to specify the "table" layout (rows and columns)

============= code =================
<asp:DataList id="judgelist" runat="server">
<ItemStyle bordercolor="black"></ItemStyle>
<HeaderTemplate>
<table width="90%" cellpadding="5" >
<tr bgcolor="#b0c4de">
<th>
Action</th>
<th>
Judge</th>
<th>
Caption</th>
<th align="center">
Completed</th>
</HeaderTemplate>
<ItemTemplate >
<tr bgcolor="lightcyan">
<td id="myLink" runat="server">
.............
===================================
 
W

Wayne Wengert

Jason;

I had the table end tag in the footer section. I actually left out all the
</tr> tags. The page worked fine in all the browsers I tested on.

Wayne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top