Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

Issue Referencing Nested DataList

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

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

shows error with following msg
the name 'DataList1' does not exist in the current context.

surprised.......how 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
 
 
 
Reply

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



Advertisments