473,396 Members | 1,992 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Button events do not fire *bug*

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.
Nov 19 '05 #1
2 1177
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" <no****@nospam.com> wrote in message
news:eu**************@tk2msftngp13.phx.gbl...
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.

Nov 19 '05 #2
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
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: JPRoot | last post by:
Hi I use the following syntax to have events inherited from base to child classes which works nicely (virtual and override keyword on events). But I am wondering if it is a "supported" way of using...
15
by: Rhy Mednick | last post by:
I have a class (let's call it ClassA) that I've written which has events. In another class (let's call it ClassB) I create a collection of ClassA objects. In a third class (ClassC) I create a...
4
by: Mark Lingen | last post by:
I've found a problem with postback event handling and webcontrol buttons. Try out the following code in an ASP.Net project and you will see. Create a web project in VB.Net and drop this code...
2
by: Sam Miller | last post by:
Hi, I have a button event that won't fire. I left it on Friday and it worked fine. I came back in on Monday and it won't fire. I tried putting another button and just putting a...
1
by: Klaus Jensen | last post by:
Hi! This has been annoying me all day, and I can't get it to work It is really driving me nuts! Basicly this simple webapp created to illustrate my problem, renders five buttons, and adds a...
14
by: Kevin | last post by:
A couple of easy questions here hopefully. I've been working on two different database projects which make use of multiple forms. 1. Where's the best/recommended placement for command buttons...
24
by: John Gabriel | last post by:
CreateDialogIndirect() fires my Radio button click function without the radio button having being clicked. I am using VC++ 2003.NET. I believe this is yet another Microsoft bug. Have checked dialog...
21
by: Darin | last post by:
I have a form w/ a textbox and Cancel button on it. I have a routine to handle textbox.validating, and I have the form setup so the Cancel button is the Cancel button. WHen the user clicks on...
5
by: Tony | last post by:
I am continuing to develop an Access 2007 application which was originally converted from Access 2003. In Access 2003 I was able to disable the Access Close button in the top righthand corner of...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.