Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Button Click event not firing

Reply
Thread Tools

Button Click event not firing

 
 
Ken Cox [Microsoft MVP]
Guest
Posts: n/a
 
      04-28-2004
Hi Andrea,

You might want to review this article by Mike Moore which deals with this
issue:

"The validation controls stole my client-side click event. How do I get it
back? "

http://authors.aspalliance.com/kenc/faq6.aspx

"Andrea Williams" <> wrote in message
news:...
>I have several buttons in a form. One particular button has the Property
> 'CauseValidation' set to true the rest are set to false. I also have an
> event set up on the button. When the button is pressed, The postback
> happens, but the button_click method is not being called. I stepped
> through
> the code and it's not breaking inside the method at all. Is this by
> design,
> or am I missing something? I need to change a variable when the button is
> clicked and I thought I might be about to do it server side but since the
> method isn't being called, I'm now thinking I need some client-side to
> change the hidden element before the post.
>
> Any one have any suggestions?
>
> Thanks in advance,
> Andrea
>
>


 
Reply With Quote
 
 
 
 
Andrea Williams
Guest
Posts: n/a
 
      04-28-2004
I have several buttons in a form. One particular button has the Property
'CauseValidation' set to true the rest are set to false. I also have an
event set up on the button. When the button is pressed, The postback
happens, but the button_click method is not being called. I stepped through
the code and it's not breaking inside the method at all. Is this by design,
or am I missing something? I need to change a variable when the button is
clicked and I thought I might be about to do it server side but since the
method isn't being called, I'm now thinking I need some client-side to
change the hidden element before the post.

Any one have any suggestions?

Thanks in advance,
Andrea


 
Reply With Quote
 
 
 
 
Andrea Williams
Guest
Posts: n/a
 
      04-28-2004
Thanx! This gives me a few ideas...

Are you part of his group? If so, tell him I miss his salmon! I was a
contractor for the Localization team a few years back. The salmon was
excellent!

Andrea Williams


"Ken Cox [Microsoft MVP]" <> wrote in message
news:u$...
> Hi Andrea,
>
> You might want to review this article by Mike Moore which deals with this
> issue:
>
> "The validation controls stole my client-side click event. How do I get it
> back? "
>
> http://authors.aspalliance.com/kenc/faq6.aspx
>
> "Andrea Williams" <> wrote in message
> news:...
> >I have several buttons in a form. One particular button has the Property
> > 'CauseValidation' set to true the rest are set to false. I also have an
> > event set up on the button. When the button is pressed, The postback
> > happens, but the button_click method is not being called. I stepped
> > through
> > the code and it's not breaking inside the method at all. Is this by
> > design,
> > or am I missing something? I need to change a variable when the button

is
> > clicked and I thought I might be about to do it server side but since

the
> > method isn't being called, I'm now thinking I need some client-side to
> > change the hidden element before the post.
> >
> > Any one have any suggestions?
> >
> > Thanks in advance,
> > Andrea
> >
> >

>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
image button click event fires before click event of button Purvi T ASP .Net 0 10-19-2004 06:19 AM
Button.Init? how Do I know if click event has been fired? TextBox.TextChanged event before Button.Click in a CompositeCustomControl. jorge ASP .Net Building Controls 1 05-28-2004 06:23 AM
Button.Init? how Do I know if click event has been fired? TextBox.TextChanged event before Button.Click in a CompositeCustomControl. jorge ASP .Net 2 05-25-2004 11:45 PM
Button.Init? how Do I know if click event has been fired? TextBox.TextChanged event before Button.Click in a CompositeCustomControl. jorge ASP .Net Datagrid Control 0 05-25-2004 01:45 AM
Button.Init? how Do I know if click event has been fired? TextBox.TextChanged event before Button.Click in a CompositeCustomControl. jorge ASP .Net Web Controls 0 05-25-2004 01:45 AM



Advertisments
 



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