473,387 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

DataList Table Layout

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">
.............
===================================
Nov 19 '05 #1
2 3582
Where do you close the table and the first tr?

Jason Lind

"Wayne Wengert" wrote:
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">
.............
===================================

Nov 19 '05 #2
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
"Jason L Lind" <Ja********@discussions.microsoft.com> wrote in message
news:C7**********************************@microsof t.com...
Where do you close the table and the first tr?

Jason Lind

"Wayne Wengert" wrote:
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">
.............
===================================

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Chris Fink | last post by:
Hello, Does anyone know of a way to prevent the asp:datalist control from creating html code table and table row tags when it is rendered. I have normally just incorporated this into the layout...
5
by: Rick Spiewak | last post by:
I'm using a DataList inside a Grid Layout Panel (which ends up being a <DIV>) so that I can use the overflow:scroll property. This is working fine, except for one anomaly: If there aren't enough...
0
by: Alex | last post by:
Interested in more .NET stuff visit www.dedicatedsolutions.co.uk The DataList is not as powerful as the DataGrid. It requires more work from you since it has no default data presentation format....
2
by: Marcos MOS | last post by:
Hi, I have a page (.aspx) with a DataList. Into it there is a DataGrid... (master/detail). I wanna my DataList repeat 2 columns in RepeatLayout = Flow format. But when I put RepeatColumns=2...
5
by: Petr SIMUNEK | last post by:
Is there a way to render something before the DATALIST encapsulation table gets rendered ? So that I could have Label before actual table that is rendered by DATALIST... <h1>Some Label</h1>...
2
by: jagdishl | last post by:
hi: I need to place a submit button immediately after the datalist which may at times be very long.I had posted this problem before and I was asked to change the layout from "Grid" to "Flow"...
2
by: Mirek Endys | last post by:
Hello, Im often use DataList for viewing and editing datas. For better layout controling, I create a table in the template and there I put other controls or binding data into table cells. ...
0
by: s.gregory | last post by:
My page layout is like this: Page >DataList (databound using ObjectDataSource1 contained in page) >>Items >>>UserControl >>>>GridView (databound using another ObjectDataSource2 contained in...
1
by: David Lozzi | last post by:
Howdy, I have a datalist which is displaying a list of categories and their associated sub categories in secondary datalists. Works great in a single column. Unfortunaly when i switch it to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.