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 / February 2008

Tip: Looking for answers? Try searching our database.

PagerTemplate=LoadTemplate("myPager.ascx")

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rodchar - 13 Feb 2008 21:00 GMT
hey all,
recalling the subject line:
is it possible to have a DropDownList in my pager template user control? if
so, if the datasource needs to be sent in to say a public property how would
i do that?

i mean i have:
FormView1.PagerTemplate=LoadTemplate("~/PagerTemplate.ascx");

where would i pass it my datasource?

thanks,
rodchar
Manish - 14 Feb 2008 10:52 GMT
Hi,

If you want to assign the DataSource to your formview control then you can
do it on the page where your formview control lies and for the dropdown
control, bind it the datasource in the user control and then load the
template to the PagerTemplate of the forview control in the Page load event
the way you have done.

Regards,
Manish

www.ComponentOne.com

> hey all,
> recalling the subject line:
[quoted text clipped - 9 lines]
> thanks,
> rodchar
rodchar - 16 Feb 2008 21:45 GMT
thank you for the help.
rod.

> hey all,
> recalling the subject line:
[quoted text clipped - 9 lines]
> thanks,
> rodchar

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.