passing value using eventargs

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default passing value using eventargs

    is there a way to pass values using the eventargs of a certain event, lets
    say onclick?? or how does everyone else pass values? lets say each button
    has 5 things (string, ints, etc) it needs to know, how can you pass that to
    the event handler?


    memememe Guest

  2. Similar Questions and Discussions

    1. What does (ByVal sender As System.Object, ByVal e As System.EventArgs) mean?
      I just don't get what the () after the sub name does...kind of stupid question, but it would be nice to understand it. Thanks. Kathy *** Sent...
    2. How to set default to TRUE: Overrides Function OnBubbleEvent(ByVal source As Object, ByVal args As EventArgs) As Boolean?
      Hello, how can I set the default value to TRUE of Overrides Function OnBubbleEvent(ByVal source As Object, ByVal args As EventArgs) As Boolean ?...
    3. HELP! Passing from database to asp page allowing user input then passing to another database.
      My big problem is I'm a newbie working with someone else's code.(See code below) What I want to do is for the records that have a purchase order...
    4. what is EventArgs
      Hi, in any event procudure,there is two paras:sender As Object, e As EventArgs, i copied them-not know what they are about, and my ASPX works. I...
    5. (Object source, EventArgs e)
      Hi, You know the parameters i'm talking about? void whatever (Object source, EvenArgs e)? how do you go about using those parameters? I need to...
  3. #2

    Default Re: passing value using eventargs

    One option is to utilize the commandarguments argument.
    it's a read write property of the control retrievable thru event args ex.
    e.commandname

    "memememe" <[rem]casolorz[rem]@hot[rem]mail.com> wrote in message
    news:q9iOa.647787$vU3.612940@news1.central.cox.net ...
    > is there a way to pass values using the eventargs of a certain event, lets
    > say onclick?? or how does everyone else pass values? lets say each button
    > has 5 things (string, ints, etc) it needs to know, how can you pass that
    to
    > the event handler?
    >
    >

    Alvin Bruney Guest

  4. #3

    Default Re: passing value using eventargs


    "Alvin Bruney" <vapordan_spam_me_not@hotmail_no_spamhotmail.com > wrote in
    message news:edMGAILRDHA.3144@tk2msftngp13.phx.gbl...
    > One option is to utilize the commandarguments argument.
    > it's a read write property of the control retrievable thru event args ex.
    > e.commandname
    >
    > "memememe" <[rem]casolorz[rem]@hot[rem]mail.com> wrote in message
    > news:q9iOa.647787$vU3.612940@news1.central.cox.net ...
    > > is there a way to pass values using the eventargs of a certain event,
    lets
    > > say onclick?? or how does everyone else pass values? lets say each
    button
    > > has 5 things (string, ints, etc) it needs to know, how can you pass that
    > to
    > > the event handler?
    > >
    > >
    >
    >
    I have used that but it wont solve my problem right now (actually not my
    problem, someone elses) because they are using the onlick event of something
    other than a button, and it does not have the command event.


    memememe Guest

  5. #4

    Default Re: passing value using eventargs


    "Kevin Spencer" <kevin@SPAMMERSSUCKtakempis.com> wrote in message
    news:OnHHN2LRDHA.940@TK2MSFTNGP11.phx.gbl...
    > Some .Net Event classes contain data in them. It sounds like you might
    need
    > to create a custom Event Class and Event Handler delegate, in order to
    pass
    > the data you specifically need. Is that correct?
    >
    > HTH,
    >
    > Kevin Spencer
    > Microsoft FrontPage MVP
    > Internet Developer
    > [url]http://www.takempis.com[/url]
    > Some things just happen.
    > Everything else occurs.
    >
    > "memememe" <[rem]casolorz[rem]@hot[rem]mail.com> wrote in message
    > news:q9iOa.647787$vU3.612940@news1.central.cox.net ...
    > > is there a way to pass values using the eventargs of a certain event,
    lets
    > > say onclick?? or how does everyone else pass values? lets say each
    button
    > > has 5 things (string, ints, etc) it needs to know, how can you pass that
    > to
    > > the event handler?
    > >
    > >
    >
    >
    that would probably actually work (had considered similar scenarios), i just
    hope i can convince the person needing that thats the way to go.
    What about creating a class that extends lets say htmlanchor and on the
    onclick event it passes something on the event args, or it has some
    properties that can be read/write?


    memememe Guest

  6. #5

    Default Re: passing value using eventargs

    Some .Net Event classes contain data in them. It sounds like you might need
    to create a custom Event Class and Event Handler delegate, in order to pass
    the data you specifically need. Is that correct?

    HTH,

    Kevin Spencer
    Microsoft FrontPage MVP
    Internet Developer
    [url]http://www.takempis.com[/url]
    Some things just happen.
    Everything else occurs.

    "memememe" <[rem]casolorz[rem]@hot[rem]mail.com> wrote in message
    news:q9iOa.647787$vU3.612940@news1.central.cox.net ...
    > is there a way to pass values using the eventargs of a certain event, lets
    > say onclick?? or how does everyone else pass values? lets say each button
    > has 5 things (string, ints, etc) it needs to know, how can you pass that
    to
    > the event handler?
    >
    >

    Kevin Spencer Guest

  7. #6

    Default Re: passing value using eventargs

    As to whether you can successfully override an event handler for an existing
    class, you would have to check that class to find out. It's not hard to
    create a custom Server Control either.

    HTH,

    Kevin Spencer
    Microsoft FrontPage MVP
    Internet Developer
    [url]http://www.takempis.com[/url]
    Some things just happen.
    Everything else occurs.

    "memememe" <[rem]casolorz[rem]@hot[rem]mail.com> wrote in message
    news:vUjOa.648127$vU3.216888@news1.central.cox.net ...
    >
    > "Kevin Spencer" <kevin@SPAMMERSSUCKtakempis.com> wrote in message
    > news:OnHHN2LRDHA.940@TK2MSFTNGP11.phx.gbl...
    > > Some .Net Event classes contain data in them. It sounds like you might
    > need
    > > to create a custom Event Class and Event Handler delegate, in order to
    > pass
    > > the data you specifically need. Is that correct?
    > >
    > > HTH,
    > >
    > > Kevin Spencer
    > > Microsoft FrontPage MVP
    > > Internet Developer
    > > [url]http://www.takempis.com[/url]
    > > Some things just happen.
    > > Everything else occurs.
    > >
    > > "memememe" <[rem]casolorz[rem]@hot[rem]mail.com> wrote in message
    > > news:q9iOa.647787$vU3.612940@news1.central.cox.net ...
    > > > is there a way to pass values using the eventargs of a certain event,
    > lets
    > > > say onclick?? or how does everyone else pass values? lets say each
    > button
    > > > has 5 things (string, ints, etc) it needs to know, how can you pass
    that
    > > to
    > > > the event handler?
    > > >
    > > >
    > >
    > >
    >
    > that would probably actually work (had considered similar scenarios), i
    just
    > hope i can convince the person needing that thats the way to go.
    > What about creating a class that extends lets say htmlanchor and on the
    > onclick event it passes something on the event args, or it has some
    > properties that can be read/write?
    >
    >

    Kevin Spencer Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139