What's Page __EVENTARGUMENT?
Asked Answered
K

1

13

I saw code like this:

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

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

Kilkenny answered 4/3, 2009 at 16:17 Comment(0)
C
20

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

This article explains it in a bit more detail.

Crowder answered 4/3, 2009 at 16:22 Comment(3)
In case of dynamic LinkButton Request["__EVENTARGUMENT"] is coming as empty string. #14487233Deepen
The second link is broke and redirects to a unrelated website.Obeded
@user2389345436357: Thanks, removed. (Would remove the answer, given that it's almost link-only now, but I can't as it's accepted.)Crowder

© 2022 - 2024 — McMap. All rights reserved.