Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Button events do not fire *bug*

Reply
Thread Tools

Button events do not fire *bug*

 
 
Mark Broadbent
Guest
Posts: n/a
 
      01-17-2005
I initially posted a problem in the aspnet.webcontrols and have now found
why the problem existed. Just thought I'd post this to see if this was
perhaps a known issue.

Scenario: I have a simple webform project that was created on one machine
and transported to my work machine. The form has two buttons Edit and Add
which do not cause validation. When either of them are clicked they fire
their respective events and cause textboxes (and the Save and Cancel
buttons) to come into view. The form has RequiredFieldValidators for the
textboxes -which display when the Save button is clicked.

Error: Both machines have the same uplevel browser (ie6). On machine 1
everything works fine. On machine 2, when the Edit or Add buttons are
clicked they do not fire their events (if I set them to causes validation
they do cause the FieldValidators to work ...but still don't fire their
events). I noticed that I can get the events to fire if I set the
FieldValidators to EnableClientScript = false

Points to note here.
1. My code works fine on machine 1 properly
2. Both machines have the same uplevel browser
3. Since both buttons are non validating, they should be uneffected by the
Validator controls anyway.
4. This is really p**s poor and has cost me an entire mornings work.
5. When problems like this occur you start to question the whole question of
programming for uplevel browsers if you can't rely on the code executing
correctly

Has anyone else come across this or similar problems.

Br,

Mark.


 
Reply With Quote
 
 
 
 
Mark Broadbent
Guest
Posts: n/a
 
      01-17-2005
I've had a response from Ken Cox (MVP) -this might be the problem (I shall
go thru)....
http://authors.aspalliance.com/kenc/faq6.aspx


"Mark Broadbent" <(E-Mail Removed)> wrote in message
news:eulJvwJ$(E-Mail Removed)...
>I initially posted a problem in the aspnet.webcontrols and have now found
>why the problem existed. Just thought I'd post this to see if this was
>perhaps a known issue.
>
> Scenario: I have a simple webform project that was created on one machine
> and transported to my work machine. The form has two buttons Edit and Add
> which do not cause validation. When either of them are clicked they fire
> their respective events and cause textboxes (and the Save and Cancel
> buttons) to come into view. The form has RequiredFieldValidators for the
> textboxes -which display when the Save button is clicked.
>
> Error: Both machines have the same uplevel browser (ie6). On machine 1
> everything works fine. On machine 2, when the Edit or Add buttons are
> clicked they do not fire their events (if I set them to causes validation
> they do cause the FieldValidators to work ...but still don't fire their
> events). I noticed that I can get the events to fire if I set the
> FieldValidators to EnableClientScript = false
>
> Points to note here.
> 1. My code works fine on machine 1 properly
> 2. Both machines have the same uplevel browser
> 3. Since both buttons are non validating, they should be uneffected by the
> Validator controls anyway.
> 4. This is really p**s poor and has cost me an entire mornings work.
> 5. When problems like this occur you start to question the whole question
> of programming for uplevel browsers if you can't rely on the code
> executing correctly
>
> Has anyone else come across this or similar problems.
>
> Br,
>
> Mark.
>



 
Reply With Quote
 
 
 
 
Tolga Celtikci via DotNetMonster.com
Guest
Posts: n/a
 
      02-03-2005
Hi Mark,

i have the same problem just like you, i think we are missing stg. when transferring the project, also i could not find any useful info Ken's url.

so if you have managed to overcome this problem please let me know..

--
Message posted via http://www.dotnetmonster.com
 
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
Button.Click event doesn't fire when clicking button in formView.InsertItemTemplate Andy B. ASP .Net 0 11-25-2009 03:27 PM
Re: UpdatePanel and ASP:Button - Button's Click event doesn't fire Nathan Sokalski ASP .Net 0 01-15-2009 10:00 PM
UpdatePanel and ASP:Button - Button's Click event doesn't fire MU ASP .Net 0 01-15-2009 09:45 PM
How to fire both event button click and textchanged when button is click and text is changed Amy ASP .Net 0 06-01-2006 02:33 PM
Events Events Events Please Help Chris ASP .Net Web Controls 0 08-30-2005 08:21 PM



Advertisments