473,386 Members | 1,799 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,386 software developers and data experts.

Click even won't execute correctly

Hi
I've got a little issue with a form I'm working on right now. I have several
command buttons on my web form and when I click on several of them, I get no
response at all. I have defined events for the controls. Hmmm, I wonder, I
also have 3 RequiredFieldValidator controls also on this form for another
section of this Master/Detail form. If these controls fail there validation
(which it would, because the controls have no data, they are used for adding
new items) would this cause the buttons to not work? I just started thinking
that this could a problem. If this is it, what would you suggest to get
around this.
This form has visiable sections, the upper contains the Purchase orders,
when they select a PO the lower section grid fills with the items in the po
request. Now under this I have the controls that are using the vaidation
controls, and they are only used to add new items to the po.
If I disable the controls until the user clicks a ADD Item button, and
asfter the user submits the new item, disable the controls again. Would this
take care of the validation controls? What have others done? Thanks for any
suggestions.
Michael

Apr 25 '06 #1
2 1050
Hi Everyone,
I beleive I've got my issue taken care of. What I did was disable the
validators and the controls until the user clicks a AddItem button, then I
enable all the control so that the user can add new items, then I disable the
validator controls again after the new data has been submitted.
Thanks for taking the time to stop and check out the message.
Michael
"Michael" wrote:
Hi
I've got a little issue with a form I'm working on right now. I have several
command buttons on my web form and when I click on several of them, I get no
response at all. I have defined events for the controls. Hmmm, I wonder, I
also have 3 RequiredFieldValidator controls also on this form for another
section of this Master/Detail form. If these controls fail there validation
(which it would, because the controls have no data, they are used for adding
new items) would this cause the buttons to not work? I just started thinking
that this could a problem. If this is it, what would you suggest to get
around this.
This form has visiable sections, the upper contains the Purchase orders,
when they select a PO the lower section grid fills with the items in the po
request. Now under this I have the controls that are using the vaidation
controls, and they are only used to add new items to the po.
If I disable the controls until the user clicks a ADD Item button, and
asfter the user submits the new item, disable the controls again. Would this
take care of the validation controls? What have others done? Thanks for any
suggestions.
Michael

Apr 25 '06 #2
With asp.net 2.0 you can set ValidationGroups to associate validators with
particular controls. You can also set the CausesValidation property of the
button to "False" and it won't trigger any kind of validation ever.

"Michael" wrote:
Hi Everyone,
I beleive I've got my issue taken care of. What I did was disable the
validators and the controls until the user clicks a AddItem button, then I
enable all the control so that the user can add new items, then I disable the
validator controls again after the new data has been submitted.
Thanks for taking the time to stop and check out the message.
Michael
"Michael" wrote:
Hi
I've got a little issue with a form I'm working on right now. I have several
command buttons on my web form and when I click on several of them, I get no
response at all. I have defined events for the controls. Hmmm, I wonder, I
also have 3 RequiredFieldValidator controls also on this form for another
section of this Master/Detail form. If these controls fail there validation
(which it would, because the controls have no data, they are used for adding
new items) would this cause the buttons to not work? I just started thinking
that this could a problem. If this is it, what would you suggest to get
around this.
This form has visiable sections, the upper contains the Purchase orders,
when they select a PO the lower section grid fills with the items in the po
request. Now under this I have the controls that are using the vaidation
controls, and they are only used to add new items to the po.
If I disable the controls until the user clicks a ADD Item button, and
asfter the user submits the new item, disable the controls again. Would this
take care of the validation controls? What have others done? Thanks for any
suggestions.
Michael

Apr 25 '06 #3

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

Similar topics

12
by: who be dat? | last post by:
I'm trying to make a webpage do the following: I want a user to be able to click on a given image (there will be more than one image). Upon clicking a given image, characters specific to that...
2
by: Yama | last post by:
Hi, I have a button which is a server-side control. If a client-side error on a form is produced and a javascript (client-side) is fired how do I avoid the server-side button_client event to...
2
by: Ryan Liu | last post by:
Hi, I need the MouseDown event be trigged everytime when you press mouse in a datagrid (System.Windows.Forms). But seems mouse event will only fire once, and it seems changed to edit mode...
4
by: LyzH | last post by:
Someone else had a question on how to emulate a mouse click. I tried posting in that thread but I have something of a twist on this problem and I'm really in trouble here! If I don't get help...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.