create a click event for control in the code behind.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I am writing in .net 1.1 asp.net program in c#.
In the code behind I declared a reference html control (frame):

Code:
HtmlControl rightFrame = (HtmlControl)mainFrame.FindControl("frmRight");

Now I want to create a new "click" event for this control in the code behind.
This "click" is not "built in" .net.
I tried to use this code:
Code:
rightFrame.Click+= new System.EventHandler(this.oHTMLBodyRight_onclick);
I get the message- "System.Web.UI.HtmlControls.HtmlGenericControl does not
contain definition to click"

what is the way to declare click event for the control - "rightFrame"
Any help, links will be appreciated!

Thanks in advance.
 
Back
Top