event trigger

Discussion in 'ASP .Net Web Controls' started by Guest, Jun 15, 2005.

  1. Guest

    Guest Guest

    Hi
    How can I trigger a button_click event in c#, please? I have tried calling
    the event directly, but it event was looking for some parameters such as
    sender and eventarguments which I don't know what to send?!

    TIA

    --
     
    Guest, Jun 15, 2005
    #1
    1. Advertisements

  2. Guest

    Harolds Guest

    Send (null,null) if you don't use the parameters.

    Better yet create a seperate function that is called by the event and
    anywhere else.

    "dl" wrote:

    > Hi
    > How can I trigger a button_click event in c#, please? I have tried calling
    > the event directly, but it event was looking for some parameters such as
    > sender and eventarguments which I don't know what to send?!
    >
    > TIA
    >
    > --
    >
    >
    >
    >
     
    Harolds, Jun 15, 2005
    #2
    1. Advertisements

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. =?Utf-8?B?T3dpbg==?=
    Replies:
    2
    Views:
    1,437
    Mike Smith
    Jul 15, 2004
  2. dana lees

    Trigger an event on a different frame

    dana lees, Aug 25, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    1,965
    Vidar Petursson
    Oct 23, 2004
  3. David
    Replies:
    3
    Views:
    2,981
    news.microsoft.com
    Dec 2, 2004
  4. Guest

    control event trigger by script

    Guest, Jun 15, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    478
    Dmytro Lapshyn [MVP]
    Jun 16, 2005
  5. Beffmans

    how to trigger Back event

    Beffmans, Jul 12, 2005, in forum: ASP .Net
    Replies:
    6
    Views:
    943
    =?Utf-8?B?TWljaGFlbCBCYWx0aWM=?=
    Jul 12, 2005
  6. Jimmy
    Replies:
    1
    Views:
    666
    Hans Kesting
    Jul 12, 2005
  7. Replies:
    2
    Views:
    591
    James Doughty
    Dec 28, 2005
  8. Anthony Papillion

    TkInter bind() event is not firing event trigger

    Anthony Papillion, Jun 23, 2010, in forum: Python
    Replies:
    3
    Views:
    2,226
    rantingrick
    Jun 23, 2010
Loading...