Wrox Programmer Forums
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics 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 August 18th, 2010, 03:14 PM
Authorized User
 
Join Date: Mar 2010
Posts: 65
Thanks: 6
Thanked 0 Times in 0 Posts
Default Issue in validation control

Hello,
I have few linkbuttons and a Button control and few textboxes.
if i click my button control i want all the textboxex to be validated. it worked.

-But even if i click other linkbutton controls which is used for other purposes, it validates the textboxes too. i dont want that to be done. so i used

linkbutton1.causesvalidation="false";
- similarly i did that for all other linkbuttons. so it worked.

-Is there any other way, otherthan doing this because what if i want one of the linkbutton to cause validation for other purpose?

-Thanks
 
Old August 18th, 2010, 03:26 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

Hello...
You have a property call validationgroup. Use that to control which control are validated when you press a button (use the same name for every control you want...
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========
 
Old August 19th, 2010, 12:38 PM
Authorized User
 
Join Date: Mar 2010
Posts: 65
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Thanks. it worked.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation control help subhasps8 ASP.NET 2.0 Professional 1 July 30th, 2007 12:50 AM
strut validation frame work issue pkherde Struts 1 June 7th, 2007 11:40 PM
JavaScript form field validation error issue crmpicco Javascript How-To 4 July 4th, 2005 10:10 AM
Validation control divsalar ASP.NET 1.x and 2.0 Application Design 1 December 25th, 2004 12:22 PM
Validation control ? basant ADO.NET 1 February 5th, 2004 04:46 AM





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