Ask a Question related to ASP.NET General, Design and Development.
-
memememe #1
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
-
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... -
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 ?... -
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... -
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... -
(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... -
Alvin Bruney #2
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 ...to> 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> the event handler?
>
>
Alvin Bruney Guest
-
memememe #3
Re: passing value using eventargs
"Alvin Bruney" <vapordan_spam_me_not@hotmail_no_spamhotmail.com > wrote in
message news:edMGAILRDHA.3144@tk2msftngp13.phx.gbl...lets> 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,button> > say onclick?? or how does everyone else pass values? lets say eachI have used that but it wont solve my problem right now (actually not my> to> > has 5 things (string, ints, etc) it needs to know, how can you pass that>> > the event handler?
> >
> >
>
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
-
memememe #4
Re: passing value using eventargs
"Kevin Spencer" <kevin@SPAMMERSSUCKtakempis.com> wrote in message
news:OnHHN2LRDHA.940@TK2MSFTNGP11.phx.gbl...need> Some .Net Event classes contain data in them. It sounds like you mightpass> to create a custom Event Class and Event Handler delegate, in order tolets> 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,button> > say onclick?? or how does everyone else pass values? lets say eachthat would probably actually work (had considered similar scenarios), i just> to> > has 5 things (string, ints, etc) it needs to know, how can you pass that>> > the event handler?
> >
> >
>
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
-
Kevin Spencer #5
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 ...to> 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> the event handler?
>
>
Kevin Spencer Guest
-
Kevin Spencer #6
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 ...that>
> "Kevin Spencer" <kevin@SPAMMERSSUCKtakempis.com> wrote in message
> news:OnHHN2LRDHA.940@TK2MSFTNGP11.phx.gbl...> need> > Some .Net Event classes contain data in them. It sounds like you might> pass> > to create a custom Event Class and Event Handler delegate, in order to> lets> > 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,> button> > > say onclick?? or how does everyone else pass values? lets say each> > > has 5 things (string, ints, etc) it needs to know, how can you passjust>> > to> >> > > the event handler?
> > >
> > >
> >
> that would probably actually work (had considered similar scenarios), i> 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



Reply With Quote

