470,619 Members | 1,485 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,619 developers. It's quick & easy.

click events no longer work on dynamically loaded web user control

I have an application that was built using asp.net 1.1. The application
interviews the user with a parent form that loads a series of web user
controls (.ascx files)dynamically with page.loadcontrol. It needs to be
dynamic because the next user control loaded is based on the answer to the
previous question. The application has worked flawlessly for many years. I
recently upgraded the application to .net 2.0 and found that the button click
events on the web user control are no longer firing. After closer
examination I found that when I set a breakpoint on the parent form the
postback is happening there instead of the click event handler on the .ascx
web user control.

Can anyone give me a suggestion on how to get the click event to go to the
user control instead of the parent?
Aug 17 '07 #1
0 1412

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Danny Bloodworth | last post: by
5 posts views Thread by Ben Fidge | last post: by
5 posts views Thread by karthick raja | last post: by
12 posts views Thread by scsharma | last post: by
11 posts views Thread by Terry Olsen | last post: by
2 posts views Thread by =?Utf-8?B?SHV6ZWZh?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.