Request.Form("__EVENTTARGET") in C#

R

RJN

Hi

In VB.Net I can know the control which fired the event using
Request.Form("__EVENTTARGET"). I tried the same in C#. But it always
returned null. Any other way to find out?

Regards

Rjn
 
B

bruce barker

it works the same way in c#. but Request.Form["__EVENTTARGET"] is only used
with controls that use javascript to postback, not with asp:button or
asp:imagebutton controls. you check for their postback by checking
Request.Form for an entry with their name.

-- bruce (sqlwork.com)


| Hi
|
| In VB.Net I can know the control which fired the event using
| Request.Form("__EVENTTARGET"). I tried the same in C#. But it always
| returned null. Any other way to find out?
|
| Regards
|
| Rjn
|
|
|
| Don't just participate in USENET...get rewarded for it!
 

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
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top