add mouseclick event to panel

domain

New Member
I want to assign \[code\]mouseclick\[/code\] event to \[code\]asp.net panel\[/code\]:\[code\]protected void Page_Load(object sender, EventArgs e){ Panel p = new Panel(); p.Click += new EventHandler(b_Click);//but, this doesn't compiles correctly}protected void b_Click(object sender, EventArgs e) { //C#code}\[/code\]Is there any way to add click event to panel?
 
Back
Top