Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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 September 30th, 2007, 06:00 AM
Registered User
 
Join Date: Sep 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default validator control error

Hello friends..
I am facing one problem with requiredfieldvalidator .My .aspx page
contains top, bottom and left web user controls. The middle part of
the page contains some textboxes and requiredfield validator
associated with them. Left control displays some menus. I use link
button to display links on the left control. Now, whenever i click on
the link buttons the requiredfiledvalidator displays error because the
textbox is empty.The important fact is that both linkbuttons and
requiredfieldvalidator lies on same page. How to avoid this?

 
Old September 30th, 2007, 11:59 PM
Authorized User
 
Join Date: Jun 2007
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to hericles
Default

Hi,
Do you have the main part of the page (with the required validator control) within its own FORM block with the user controls outside of it? Posting some code for the validator might help...

Steve

"I will prepare and one day my chance will come."
 
Old October 1st, 2007, 07:07 AM
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

hi there..

Check out the properties of the controls... All of them has a causevalidation property that you can set to false to avoid that they validates the whole form. Also you can groups control with a validation tag (some help I don't remember the exact property) that cause that only the controls with the same tag are validated when you pressed a button with that tag...

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
Use 1 control validator to multiple textbox contro marvz ASP.NET 2.0 Basics 2 July 27th, 2011 02:03 AM
Control validator Lofa ASP.NET 1.0 and 1.1 Basics 0 February 21st, 2006 01:57 PM
Error rendering Validator control bmains General .NET 0 July 27th, 2005 03:45 PM
DataGrid Controls Within custom validator control geetha_ganesan ADO.NET 1 March 26th, 2005 04:38 PM
How to check entered data with Validator Control minhpx General .NET 2 September 15th, 2004 04:01 AM





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