Click here to Skip to main content
15,908,444 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The ControlToValidate property of 'RequiredFieldValidator6' cannot be blank.
C#
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: The ControlToValidate property of 'RequiredFieldValidator6' cannot be blank.


Source Error:

C#
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

C#
[HttpException (0x80004005): The ControlToValidate property of 'RequiredFieldValidator6' cannot be blank.]
   System.Web.UI.WebControls.BaseValidator.ControlPropertiesValid() +1755348
   System.Web.UI.WebControls.BaseValidator.OnPreRender(EventArgs e) +36
   System.Web.UI.Control.PreRenderRecursiveInternal() +103
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
Posted
Updated 7-Feb-12 23:55pm
v2
Comments
Herman<T>.Instance 8-Feb-12 5:56am    
well...the error says it exactly, so what is your problem?
CRDave1988 8-Feb-12 5:58am    
look like error is very simple but can u show ur code of .aspx file?

Set the property of validator to a control in your code.
 
Share this answer
 
Comments
rockpune 8-Feb-12 5:57am    
thanks
Espen Harlinn 8-Feb-12 9:24am    
5'ed!
Abhinav S 8-Feb-12 9:28am    
Thank you Espen.
Your ControlToValidate blank.
set ControlToValidate Property.
 
Share this answer
 
Comments
rockpune 8-Feb-12 5:57am    
thanks
a little google[^]
 
Share this answer
 
Comments
rockpune 8-Feb-12 6:00am    
thanks
You must define a control which will be validated by your RequiredFieldValidator6. Add ControlToValivate="controlthatyouarevalidating"
 
Share this answer
 
Comments
rockpune 8-Feb-12 6:03am    
thank u
to set control to validate property to control iD
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900