Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Issue Referencing Nested DataList

Thread Tools

Issue Referencing Nested DataList

Jalal Akram
Posts: n/a
why doesn't it allows to refer DataList1 in code-behnd as in following

<aspataList ID="DataList1" runat="server" CellPadding="0"
RepeatColumns="3" RepeatDirection="Horizontal"
<aspataList ID="DataList2" runat="server">
<ItemTemplate>Stuff Here</ItemTemplate>
<asp:LinkButton ID="LinkButton1"

shows error with following msg
the name 'DataList1' does not exist in the current context. to have two nested DataLists as above and
bound them with a DataSet having two (paraent-child) tables, linked through
a DataRelation

Thinking you in advance

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
setting SelectedIndex of DataList nested inside of DataList? Les Caudle ASP .Net 0 05-02-2006 10:44 PM
GridView nested in DataList - refreshing corresponding DataList row after updating GridView row H5N1 ASP .Net 0 04-26-2006 11:41 PM
Nested datalist - parent datalist refresh schapopa ASP .Net 1 01-12-2006 03:56 PM
Referencing two Datatables from a datalist Luis Esteban Valencia ASP .Net 0 01-11-2005 06:01 PM
Setting up a datalist control - Item_DataBound for a datalist in a datalist Nevyn Twyll ASP .Net 8 09-09-2004 10:13 PM