Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Nested controls and BLL question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Emrak - 20 Mar 2008 21:23 GMT
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?
Justin Dutoit - 21 Mar 2008 05:48 GMT
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

> Hi all,
> I wish to display a Gridview with master data and associated child data
[quoted text clipped - 12 lines]
> to
> create a Repeater nested in a Gridview utilizing a BLL and DAL?
Emrak - 21 Mar 2008 14:46 GMT
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...

> Hi Emrak. Other than the obvious change from
> myRepeater.DataSource = ds;
[quoted text clipped - 6 lines]
>
> JDT

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.