Return to Snippet

Revision: 12057
at February 28, 2009 19:19 by spark9


Initial Code
<input type="button" id="Button2" value="Press me" onclick="DoPostBack()" />
<script language="javascript" type="text/javascript">
 
function DoPostBack() 
{
  __doPostBack('Button2','My Argument');     
}
 
</script>
string passedArgument = Request.Params.Get("__EVENTARGUMENT");

Initial URL

                                

Initial Description

                                

Initial Title
Cause Postback from Javascript

Initial Tags
ajax

Initial Language
ASP