Nested controls and BLL question

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?
 
J

Justin Dutoit

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
 
E

Emrak

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top