Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Last active September 22, 2015 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/b6501eb3b010dbb14534 to your computer and use it in GitHub Desktop.
Save bjoerntx/b6501eb3b010dbb14534 to your computer and use it in GitHub Desktop.
protected void Page_Load(object sender, EventArgs e)
{
// handle the AJAX postback
string eventTarget =
Convert.ToString(Request.Params.Get("__EVENTTARGET"));
string eventArgument =
Convert.ToString(Request.Params.Get("__EVENTARGUMENT"));
// if the event argument is set, toggle the checkbox
if (eventArgument != null)
{
ToggleCheckBox(eventArgument);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment