Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 29th, 2012, 12:31 PM
Authorized User
 
Join Date: Nov 2012
Posts: 40
Thanks: 8
Thanked 5 Times in 4 Posts
Default Validation controls/enable-disable

Hi Imar

I am having multiple forms on a page . One being displayed at a time while others being hidden via css property {display:hidden}.

Now the issue I am facing is when i am hitting the submit button, the validation control for all the forms gets fired.

What i want to achieve is like this >>

http://www.f-i.com/contact
 
Old December 29th, 2012, 12:35 PM
Authorized User
 
Join Date: Nov 2012
Posts: 40
Thanks: 8
Thanked 5 Times in 4 Posts
Default

What i am guessing is will disabling all the validation controls by causes "validation=false "

and activating the required ones by setting submitButton.onclick >> causesValidation=true

but am not sure wether it will do things the right way.

One more thing >> Is client side and server side validation done automatically for all supporting browsers [am following the procedure described in the book]
or anything extra needs to be done.

Thankyou.

Last edited by 07Raghav; December 29th, 2012 at 12:39 PM..
 
Old December 29th, 2012, 03:16 PM
Authorized User
 
Join Date: Nov 2012
Posts: 40
Thanks: 8
Thanked 5 Times in 4 Posts
Default

Just found out about validationgroup.

If any one else too is facing the same problem here is the http://http://msdn.microsoft.com/en-us/library/ms227424.aspx
The Following User Says Thank You to 07Raghav For This Useful Post:
kafshdoozak (January 2nd, 2013)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Using JS to enable/disable?? crabjoe Javascript 4 November 10th, 2008 06:48 PM
Enable / Disable Form Fields Automatically jackyam Javascript How-To 10 March 17th, 2008 04:46 AM
Disable and Enable at runtime Hammam ASP.NET 1.0 and 1.1 Professional 0 May 17th, 2006 12:40 AM
Disable/Enable elements ldoodle Javascript How-To 3 June 7th, 2005 05:48 AM
Enable & Disable a field using Javascript laxmig Javascript How-To 6 January 24th, 2005 08:26 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.