Hello,
I have a page that displays a data list with info from a database. The
grid has the usual stuff, edit, update, delete etc. Below this I have a
section where they can add a new entry to the list. This has some text
boxes for the data, and a button to click when they are ready to submit.
To the user, this looks like two separate forms, one containing a grid
of existing data and one where they add new data.
Trouble is, if they click the "edit" link button in the grid, nothing
happens as the validator on one of the text boxes in the new entry
section claims that it needs a value. Truth is, it does need a value,
but only when they are adding a new entry.
So how do I stop the validator firing when they click on the "edit"
link? I only want it to fire when they click the button to add a new
entry.
TIA
--
Alan Silver
(anything added below this line is nothing to do with me) 6 1510
One of the drawbacks to validation in 1.x is that all of the
validators fire every time unless you go through and disable the ones
you don't need. So, it takes some bruce force, unfortunately.
There are third party validation controls that are a lot smarter than
the ones in 1.x.
2.0 supports 'validation groups' but that is not a lot of help at this
time!
--
Scott http://www.OdeToCode.com/blogs/scott/
On Thu, 17 Feb 2005 16:05:19 +0000, Alan Silver
<al*********@nospam.thanx> wrote: Hello,
I have a page that displays a data list with info from a database. The grid has the usual stuff, edit, update, delete etc. Below this I have a section where they can add a new entry to the list. This has some text boxes for the data, and a button to click when they are ready to submit.
To the user, this looks like two separate forms, one containing a grid of existing data and one where they add new data.
Trouble is, if they click the "edit" link button in the grid, nothing happens as the validator on one of the text boxes in the new entry section claims that it needs a value. Truth is, it does need a value, but only when they are adding a new entry.
So how do I stop the validator firing when they click on the "edit" link? I only want it to fire when they click the button to add a new entry.
TIA
>One of the drawbacks to validation in 1.x is that all of the validators fire every time unless you go through and disable the ones you don't need. So, it takes some bruce force, unfortunately.
How can I do that? When the server sends out the page, it doesn't know
if the user is going to fill in the new entry form, or click the "edit"
linkbutton. The client-side validation fires, preventing the page from
being posted back to the server.
Any suggestions? Thanks for the reply
There are third party validation controls that are a lot smarter than the ones in 1.x.
2.0 supports 'validation groups' but that is not a lot of help at this time!
-- Scott http://www.OdeToCode.com/blogs/scott/
On Thu, 17 Feb 2005 16:05:19 +0000, Alan Silver <al*********@nospam.thanx> wrote:
Hello,
I have a page that displays a data list with info from a database. The grid has the usual stuff, edit, update, delete etc. Below this I have a section where they can add a new entry to the list. This has some text boxes for the data, and a button to click when they are ready to submit.
To the user, this looks like two separate forms, one containing a grid of existing data and one where they add new data.
Trouble is, if they click the "edit" link button in the grid, nothing happens as the validator on one of the text boxes in the new entry section claims that it needs a value. Truth is, it does need a value, but only when they are adding a new entry.
So how do I stop the validator firing when they click on the "edit" link? I only want it to fire when they click the button to add a new entry.
TIA
--
Alan Silver
(anything added below this line is nothing to do with me)
On Thu, 17 Feb 2005 21:12:47 +0000, Alan Silver
<al*********@nospam.thanx> wrote: One of the drawbacks to validation in 1.x is that all of the validators fire every time unless you go through and disable the ones you don't need. So, it takes some bruce force, unfortunately.
How can I do that? When the server sends out the page, it doesn't know if the user is going to fill in the new entry form, or click the "edit" linkbutton. The client-side validation fires, preventing the page from being posted back to the server.
Peter Blum's controls are highly recommended: http://www.peterblum.com/vam/home.aspx
Another solution is to disable client side validation and enable /
disable on the server, along the lines of: http://www.codeproject.com/aspnet/groupvalidator.asp
HTH,
--
Scott http://www.OdeToCode.com/blogs/scott/
>>>One of the drawbacks to validation in 1.x is that all of the validators fire every time unless you go through and disable the ones you don't need. So, it takes some bruce force, unfortunately. How can I do that? When the server sends out the page, it doesn't know if the user is going to fill in the new entry form, or click the "edit" linkbutton. The client-side validation fires, preventing the page from being posted back to the server.
Peter Blum's controls are highly recommended: http://www.peterblum.com/vam/home.aspx
Wow, they look good. Have you used these? I can see that a few of those
would be very useful, but I'd like to know if they are as good as they
look.
Another solution is to disable client side validation and enable / disable on the server, along the lines of: http://www.codeproject.com/aspnet/groupvalidator.asp
That's clever!! I'll have a closer look at that as it seems to do what I
want quite simply.
Thanks for the reply.
--
Alan Silver
(anything added below this line is nothing to do with me)
>>Peter Blum's controls are highly recommended: http://www.peterblum.com/vam/home.aspx
Wow, they look good. Have you used these? I can see that a few of those would be very useful, but I'd like to know if they are as good as they look.
Personally I have not - but people I know are very happy with them,
and say not only is the software solid but the support and
documentation are excellent also.
--
Scott http://www.OdeToCode.com/blogs/scott/
>>>Peter Blum's controls are highly recommended: http://www.peterblum.com/vam/home.aspx
Wow, they look good. Have you used these? I can see that a few of those would be very useful, but I'd like to know if they are as good as they look.
Personally I have not - but people I know are very happy with them, and say not only is the software solid but the support and documentation are excellent also.
Thanks. For $50 per set, they seem quite reasonable. Glad to hear people
like them. Maybe I'll download a trial.
--
Alan Silver
(anything added below this line is nothing to do with me) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Simon Verona |
last post by:
I know this is a little of topic, for which I apologise, but I think it's pertinent to .Net development so I hope it's ok to ask this question here!
I'm looking to created filled in "forms" from...
|
by: Harry |
last post by:
Hi All,
Can anyone clever out there tell me why the below script does not
work!
- I have a page with two radio boxes with values of "agree" and
"not_agree".
- The form is set to GET which goes...
|
by: Woody Lemcke |
last post by:
Hello all,
Would you gurus please share your wisdom on any DB2 equivalents to the
Informix "Forms" input form utility and "Ace" report generating
utility? The input form will probably be accessed...
|
by: gmarquez |
last post by:
Hello,
I am using "FORMS" authentication, without SSL the behavior is normal, everythings working very well.
When in IIS I cheking "Require SSL" (in Secure Communications property), I can't to...
|
by: Angel |
last post by:
Hi
I have a problem with my web applications. I believe the problem is
somehow connected to HttpSession.
I use form authentication in my project. Once I authenticate the user and
redirect to...
|
by: Scott Johnson |
last post by:
Hi!
Is there a way to "preload" a form using a thread or something else so that
my user doesn't have to wait 5 seconds (initializing time) between forms?
Some of these forms have tab strips with...
|
by: Randy |
last post by:
Hello,
Me and another guy are working on an ASP c# project. We're using Vault for
source control.
I originally started on a form and then let him develop it (I didn't give
him my aspx, cs or...
|
by: tony |
last post by:
Is it possible to use the post method to send a form from PHP without
having to put the form in a html page?
<form action="https://www.mysite.com/cgi/incoming.php" method="post">
<input...
|
by: Troy Bull |
last post by:
Greetings
I am trying to use a singleton to hold a group of forms. I have a
MDIMaster form. I have a class called Forms; Forms is a singleton. I
want to do something like the following.
In...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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: 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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |