I would like to cause a post back that occurs only once by inserting some AJAX into the page after a specific event occurs.
Currently I have:
string script = "<script language='Javascript'>" +
"__doPostBack('GetSpreadsheet', '');" +
"</script>";
Page.ClientScript.RegisterStartupScript(this.GetType(), "DownloadExcel", script);
However, after I do this, every post back has an event target of GetSpreadsheet instead of just the first one. What am I doing wrong?