What's Page __EVENTARGUMENT?

Amr Elgarhy picture Amr Elgarhy · Mar 4, 2009 · Viewed 20.6k times · Source

I saw code like this:

if (this.Request["__EVENTARGUMENT"] == "Flag")
   //DoSomthing...

What does __EVENTARGUMENT mean and are there some parameters like it to access?

Answer

Jon Skeet picture Jon Skeet · Mar 4, 2009

It can be set by calls to __doPostBack in the JavaScript on the page.

This article explains it in a bit more detail.