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.
var button = current.FindControl("Id of button") as Button;
if(button != null)
{
button.Click += DoSomeWork;
}
private void DoSomeWork(object o, EventArgs e)
{
//do work here;
}
button.Click += (o,e) => {do work here};