Raise Event

Discussion in 'ASP .Net' started by shapper, Oct 25, 2007.

  1. shapper

    shapper Guest

    Hello,

    I am creating a web user control that contains a link button.
    I need to raise an event from my web control and send a argument when
    the link button is clicked.

    How can I do this?

    Thanks,
    Miguel
     
    shapper, Oct 25, 2007
    #1
    1. Advertisements

  2. The Button Controls has a property called CommandArguments.
    You can store your value in the same.

    Inside the event method use its 1st argument to retrieve the linkbutton
    object and then call CommandArguments property to get the value.

    - JIGNESH

    "shapper" wrote:

    > Hello,
    >
    > I am creating a web user control that contains a link button.
    > I need to raise an event from my web control and send a argument when
    > the link button is clicked.
    >
    > How can I do this?
    >
    > Thanks,
    > Miguel
    >
    >
     
    =?Utf-8?B?SklHTkVTSA==?=, Oct 25, 2007
    #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. Thanh Nguyen
    Replies:
    0
    Views:
    563
    Thanh Nguyen
    Apr 1, 2004
  2. Anand Sagar
    Replies:
    2
    Views:
    3,731
    Anand Sagar
    Apr 28, 2004
  3. Michael Tissington

    Can Href raise an event?

    Michael Tissington, May 7, 2004, in forum: ASP .Net
    Replies:
    7
    Views:
    721
    Hüseyin Bilkut Þýhmanoðlu
    May 23, 2004
  4. Oney
    Replies:
    2
    Views:
    4,640
    Natty Gur
    May 17, 2004
  5. Jacol

    raise or not to raise [Newbie]

    Jacol, Feb 3, 2007, in forum: Python
    Replies:
    5
    Views:
    645
    Gabriel Genellina
    Feb 5, 2007
  6. ernest
    Replies:
    2
    Views:
    440
    Roy Smith
    Nov 14, 2010
  7. Jack Bates
    Replies:
    0
    Views:
    442
    Jack Bates
    May 2, 2011
  8. bvdp

    Raise X or Raise X()?

    bvdp, Mar 11, 2012, in forum: Python
    Replies:
    10
    Views:
    639
    Stefan Behnel
    Mar 12, 2012
Loading...