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 1530
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*********@no spam.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*********@n ospam.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*********@no spam.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 documentatio n 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 my application eg Sales Orders, Quotations etc which have data filled in from my application. I want my users to be able to design their own form templates (eg to include their company logos, terms and conditions etc).
The standard .Net...
|
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 to the below script for
processing.
- No matter which of the two radio boxes are selected, it always goes
to the page "/broadband/order.asp".
|
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 telneting from a
Linux shell or Windows command prompt and used for updating a lab
database.
Thanks and regards,
Woody Lemcke
|
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 do login, after introducing the credentials, I am redirected to login's page again, If I take the SSL's Check off in the ISS property, everythings will work very well again.
NOTE: I have a valid certificate well installed.
What is happening?,...
|
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 default page
I create an User object and assign this object to session.
Then in other forms I access this object and use it to load data from
database. Some times I keep
data in the object as a property of object. For example let say my object is...
| |
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 lots of controls and database
queries on them and I would like to try to have some(all) of the preloading
of the next form and controls done in the background while a user is still
entering data.
(For example, my user visits screen A then B then...
|
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 resx), he developed it on his own.
Later, I got a form (aspx, cs.resx) from him (downloaded it from Vault). Now
when I try and open the aspx file I get the above error. I've check ed the
@Page and Codebehind attributes and they look fine.
Is there a...
|
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 type="hidden" name="data01" value="12">
<input type="hidden" name="data02" value="rejected">
<input type="hidden" name="star" value="sirius">
<input type="image" src="https://www.mysite.com/grid001/image1.gif"
border="0" name="submit" alt="send data">...
|
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 MDIMaster (and other forms), I want to get an instance of Forms (the
only instance). Inside Forms then there are public variables for each
of the possible forms, if a "form" has never been accessed the Forms
factory creates a new instance of the...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |