Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
public void button_Click(Object sender, EventArgs e)
{
}
public [COLOR=blue]void[/color] DoSomeWork([COLOR=blue]Object[/color] theControl, [COLOR=blue]EventArgs[/color] uselessForClickEvents)
{
}
MyButton.Click += delegate(object o, EventArgs e)
{
//put code here to do work.
};
MyButton.Click += (o, e) { do work here };
public void Button1_Click(object sender, EventArgs e)
{
}
if you open up the designer code you will also find code that looks like this (most likely in the init event)
[code]
protected override void Init(EventArgs e)
{
Button Button1 = new Button();
Button1.ID = "Button1";
Button1.Click += new EventHandler(Button1_Click);
Controls.Add(Button1);
}