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 problem with firing of click
[quoted text clipped - 42 lines]
> Response.Redirect(redirectURL, true);
> }
nitin - 17 Jul 2003 08:16 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 - 50 lines]
>>
>> ***
***
>.
nitin - 21 Jul 2003 15:17 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
>-----Original Message-----
>Hi Victor,
[quoted text clipped - 83 lines]
>>>
>>> *** Sent via Developersdex
http://www.developersdex.com
>***
>>
>>.
>>
>.