Here is my problem.
I have a master page.
I have an update panel in my master page.
I have a default.aspx page which is content page of my master page.
In my master page I have a link button, Once you click on that It creates a user control and adds it to my content page.
protected void lnk_home_Click(object sender, EventArgs e)
{
Panel pnl_view = ContentPlaceHolder1.FindControl("pnl_view") as Panel;
home home_view = LoadControl("home.ascx") as home;
pnl_view.Controls.Clear();
pnl_view.Controls.Add(home_view);
}
in my user control I have a link button
<asp:LinkButton ID="Link_return" runat="server" CssClass="menu-item"
CausesValidation="False" onclick="Link_return_Click">Return
This is server side code of my link button
protected void Link_return_Click(object sender, EventArgs e)
{
Panel pnl_view = this.Parent.FindControl("pnl_view") as Panel;
home home_view = LoadControl("home.ascx") as home;
pnl_view.Controls.Add(home_view);
}
When I click on the link button in user control click event does not fire at all, none of my controls fires any event at all.
Please help me :(