HI All,
I have created one web user control for (Change Password.ascx ) and one .aspx page (Home.aspx) and then add the web-user control to a page using Drag and Drop. and it is working fine.
Now I want to add the user control dynamically to a page. like
Control ctrl=LoadControl("ChangePass.ascx");
PlaceHolder1.Controls.Add(ctrl);
I am able to add the control to the Home.aspx But the button placed inside Web User Control not firing its click event.
Click event of the button is not fired If I not add the user control dynamically.
I google this thing but not getting proper reply.
Please help me to soulve this issue.
Thanks
Here is my code for User Contrl (ChangePass.ascx")
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ChangePass.ascx.cs" Inherits="ChangePass" %>
<table class="style1">
<tr>
<td&g ...
Go to the complete details ...