Request.Form("__EVENTTARGET") in C#

Discussion in 'ASP .Net' started by RJN, Mar 15, 2005.

  1. RJN

    RJN Guest

    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


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    RJN, Mar 15, 2005
    #1
    1. Advertising

  2. RJN

    bruce barker Guest

    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)


    "RJN" <> wrote in message
    news:...
    | 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
    |
    |
    | *** Sent via Developersdex http://www.developersdex.com ***
    | Don't just participate in USENET...get rewarded for it!
     
    bruce barker, Mar 15, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dan
    Replies:
    9
    Views:
    8,945
    vMike
    Dec 9, 2003
  2. Nuno
    Replies:
    2
    Views:
    8,492
    =?Utf-8?B?Q293Ym95IChHcmVnb3J5IEEuIEJlYW1lcikgLSBN
    Feb 10, 2005
  3. where is __EVENTTARGET ?

    , Apr 21, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    8,511
    Lau Lei Cheong
    Apr 21, 2005
  4. Kenneth Baltrinic
    Replies:
    1
    Views:
    512
    bruce barker
    May 31, 2007
  5. Dan

    Request.Form("__EVENTTARGET") = "" ???

    Dan, Dec 8, 2003, in forum: ASP .Net Web Controls
    Replies:
    9
    Views:
    1,157
    vMike
    Dec 9, 2003
Loading...

Share This Page