Request["__EVENTARGUMENT"]

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
 
G

Guest

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top