Hello All,
I am working ASP.net 2008, SSRS. I have successfully created Dynamic controls based on the selected report Parameter DataType and everything works fine.
I am trying to add validations by using the Validator controls for the dynamic RadDatePicker controls. In my scenario, I am creating two RadDatePicker controls each for StartDate and EndDate. My condition is : StartDate cannot be greater than the EndDate.
When I assign ControlToValidate and ControlToCompare for dynamically created RadDatePicker controls it is causing me problems. The error is:
Exception Details: System.Web.HttpException: Control 'dtE' referenced by the ControlToCompare property of 'dtCmpVal' cannot be validated.
Source Error:
Stack Trace:
Please help me , in figuring out to add Compare Validator or RangeValidator using Dynamic Controls.
--Deepak
I am working ASP.net 2008, SSRS. I have successfully created Dynamic controls based on the selected report Parameter DataType and everything works fine.
I am trying to add validations by using the Validator controls for the dynamic RadDatePicker controls. In my scenario, I am creating two RadDatePicker controls each for StartDate and EndDate. My condition is : StartDate cannot be greater than the EndDate.
When I assign ControlToValidate and ControlToCompare for dynamically created RadDatePicker controls it is causing me problems. The error is:
Control 'dtE' referenced by the ControlToCompare property of 'dtCmpVal' cannot be validated.
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: Control 'dtE' referenced by the ControlToCompare property of 'dtCmpVal' cannot be validated.
Source Error:
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:
|
Please help me , in figuring out to add Compare Validator or RangeValidator using Dynamic Controls.
--Deepak