How to call server side function using javascript?

By James J

Call the javascript function at server side...

protected void Button1_Click(object sender, EventArgs e)
{
  
//Write here your logic
}

//Using below line it will call the "Button1" click event...
document.getElementById(
"Button1").click();

How to call server side function using javascript?  (643 Views)