Are you dynamically loading and adding the usercontrol at runtime? Or are
you adding it at design-time? A common problem for controls not firing
events happens when they're added too late in the control lifecycle (ie.
after Load).

Signature
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
and not by private mail.
> I am adding controls to the UserControl dynamically and
> then loading the UserControl Dynamically.But I am facing
[quoted text clipped - 43 lines]
> Response.Redirect(redirectURL, true);
> }
nitin - 17 Jul 2003 08:06 GMT
Hi Victor,
heres the code.
public class RegistrationUI : CompanyName.UI.Page.PageHost
{
protected UCSPGCIRegistration FormControl;
private void Page_Load(object sender, System.EventArgs e)
{
FormControl= (UserControlClassName)LoadControl
("FormControl.ascx");
this.Controls.Add(FormControl);
}
}
Thanks for the help.
Nitin
>-----Original Message-----
>Are you dynamically loading and adding the usercontrol at runtime? Or are
[quoted text clipped - 51 lines]
>
>.
Victor Garcia Aprea [MVP] - 20 Jul 2003 22:36 GMT
Hi Nitin,
Did you solved this?
Try changing the loading code to Init instead of Load and let me know if the
problem still persists,

Signature
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
and not by private mail.
> Hi Victor,
>
[quoted text clipped - 78 lines]
> >
> >.
nitin khungar - 21 Jul 2003 15:18 GMT
Hi,
This got solved.I had to set the usercontrol's ID while loading the user
control, and it worked.
Thanks for the help anyway.
Regards,
Nitin Khungar
Patrick Sullivan - 23 Jul 2003 22:18 GMT
Can you post what the code looks like now? I'm having a similar problem.