invoking a server-side function by using JavaScript
protected void Button1_Click(object sender, EventArgs e) { FunctionName(); }
document.getElementById("Button1").click();