A New Internet Library: Add Your Website/Blog or Suggest A Website/Blog to our Free Web Directory http://anil.myfunda.net.

Its very simple, free and SEO Friendly.
Submit Now....

Thursday, April 17, 2008

Using Repeater inside a Repeater.

Simply instead of the following line

 
<asp:repeater id="childRepeater" runat="server"                      datasource='<%# ((DataRowView)Container.DataItem)       .Row.GetChildRows("myrelation") %>' >  
Use below line.

  

<asp:repeater id="childRepeater" runat="server"                      datasource='<%# GetChildData(databinder.Eval(Container.DataItem,"PKID")) %>' > 

 and in code behind file write this following function
  

public function GetChildData(byval pkid as long) as datatable dim dt as datatable  ' get your result in db by PKID or any other filteration return dt end function  here is the example  .... http://support.microsoft.com/default.aspx?scid=kb;en-us;306154 

No comments:

Post a Comment

Post your comments here:

Dotnet-Interviews