//linkmenu.ascx
02
03 <%@ Control Language="C#" Au....
04
05 LinkButton
06
07
08
09 //linkmenu.ascx.cs
10
11 ........
12 public EventHandler LinkClicked;
13 .....
14 protected void LinkButton1_Click(object sender, EventArgs e)
15 {
16 // One of the LinkButton controls has been clicked.
17 // Raise an event to the page.
18 if (LinkClicked != null)
19 {
20 LinkClicked(this, EventArgs.Empty);
21 }
22 }
23
24
25 //wizard.aspx
26
27 <%@ Page Language="C#" Au......
28 <%@ Register src="linkmenu........
29
30 .......
31
32
33
34
35 //wizard.aspx.cs
36 .....
37 protected void LinkClicked(object sender, EventArgs e)
38 {
39 Label1.Text = "Click detected.";
40 }
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.
!--removed tag-->
No one has replied yet! Why not be the first?
Sign in or Join us (it's free).