//linkmenu.ascx
<%@ Control Language="C#" Au....
<asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">LinkButton</asp:LinkButton>
//linkmenu.ascx.cs
........
public EventHandler LinkClicked;
.....
protected void LinkButton1_Click(object sender, EventArgs e)
{
// One of the LinkButton controls has been clicked.
// Raise an event to the page.
if (LinkClicked != null)
{
LinkClicked(this, EventArgs.Empty);
}
}
//wizard.aspx
<%@ Page Language="C#" Au......
<%@ Register src="linkmenu........
.......
<uc1:linkmenu ID="linkmenu1" runat="server" onLinkClicked="LinkClicked"/>
//wizard.aspx.cs
.....
protected void LinkClicked(object sender, EventArgs e)
{
Label1.Text = "Click detected.";
}
The event LinkClicked in wizard.aspx.cs is not getting hit when the user control link button is clicked can any one tell where i have done wrong.
Quote
My secretary hopes that I will pay her, her landlord hopes that she will produce some rent, the Electricity Board hopes that he will settle their bill, and so on. I find it a wonderfully optimistic way of life. [Dirk Gently]

New Topic/Question
Reply



MultiQuote




|