Nested controls and BLL question

  • Thread starter Thread starter Emrak
  • Start date Start date
E

Emrak

Hi all,
I wish to display a Gridview with master data and associated child data
"underneath" each gridview row. The child data will be displayed using a
Repeater. There are plenty of examples of nested web controls online but they
all use what I call a ".NET 1.1" style of coding. In other words, the
connection strings, dataadapter and datatables are all called and manipulated
in the page's codebehind ( you can view an example here:
http://www.dotnetspider.com/kb/Article1039.aspx ).

This methodology violates our methodology here in which an objectdatasource
calls a BLL which calls a DAL. Does anyone have any links or info on how to
create a Repeater nested in a Gridview utilizing a BLL and DAL?
 
Hi Emrak. Other than the obvious change from
myRepeater.DataSource = ds;
to
myRepeater.DataSource = SomeDALObject.ReturnDataSet();
in the second textarea on the dotnetspider page(Page_Load), it seems pretty
difficult, because you have to use the RepeaterItemEventArgs to get the
crucial information (third textarea). Sometimes OOP methodology can't be
used for everything...

JDT
 
Thanks for the reply. In my case it's almost mandatory though. The page in
question is capable of pulling up to 5 million records so custom
paging/sorting is a must...
 
Back
Top