Request["__EVENTARGUMENT"]

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello.

I have a bit of a quandry here.

In my aspx.cs code I check the __onPostBack __EVENTARGUMENT.
In the Immediate window when I type in ?Request["__EVENTARGUMENT"] it
returns the value correctly. In the code I have the following statement:

string myString = Request["__EVENTARGUMENT"]

but it always returns null!
I'm checking the value in the OnInit routine.

Thoughts/suggestions?

TIA,

Rita
 
I finally realized why it was not working.
I was using only one underscore "_" instead of two!
 
Back
Top