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 / Web Controls / November 2005

Tip: Looking for answers? Try searching our database.

Dynamic user control Event Handling (VS.NET Ent 2003)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Developer_Software - 28 Nov 2005 16:24 GMT
Thanks in advance to anyone who can help :)

I've got a placeholder control WITHIN A USER CONTROL that has its contents
dynamically added and removed at runtime by a regular .aspx page.

At runtime, the placeholder control adds a dropdownlist where I would like
it to redirect the user to a different page dependent on the selection they
make from the dropdownlist.

I've tried writing the delegate and the event handler both in the
UserControl's code behind page (placing the delegate in the Page_Load) AND
the .aspx page the user control shows up in..and IT DOES NOT RESPOND to the
event

BTW, in the .aspx page the dynamic dropdownlist is created in the OnInit
method of the page.

Is this proper? I've read so many articles and I'm not sure as to why it is
not responding. In this situation, should the event be coded in the
usercontrol or the page it will show in?
garethdjames@gmail.com - 29 Nov 2005 09:39 GMT
Make sure that you are creating the event handler for the event
regardless of a post back, it should work then

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.