validation - ASP.Net AJAX ValidatorCalloutExtender issue -


I am creating a user control (requiring user control). This user control is within an AJAX update panel on the parent page. There are two InfraGegics web date selector controls near the user control. Both dates are required I have kept both the controls asp.net RequiredFieldValicators I have placed the valuer callout extender on both of them.

A control becomes valid without every time. To debug the second intermittent, I first removed the validity ClalloutApender from the Failure Control and it is definitely necessary that the RequiredFieldValidator set fire to all the time, it appears that the problem is with the valuerator calloutappender. There are not many options for the validator callout extension but I started playing with them in every possible way and nothing could make any difference. TargetControlID will have to point to the verification control that you extend. Any help appreciated.

Here's the code that works correctly every time:

 < Code> & lt; Igsch: WebDateChooser id = "wdcEndDatePop" runat = "server" EnableAppStyling = "True" NullDateLabel = "" StyleSetName = "eWERKS3" StyleSetset = "~ / App_Themes /" Width = "200px" MinDate = "2009-01-01" / & Gt; & Lt; Asp: RequiredFieldValidator id = "rfvEndDate" runat = "server" ControlToValidate = "wdcEndDatePop" display = "none" error message = "end date is required." Validation Group = "End pipe" /> & Lt; Cc1: Value CallerApender ID = "vceEndDatePop" runat = "server" closeImageUrl = "~ / images / close.gif" Highlight CSS class = "ValidCallout Highlight" TargetControl ID = "RFVandTit" warning IconImageUrl = "~ / images / back_warning2.gif" />  

And here's the code that works intermitemtly:

  & lt; Igsch: WebDateChooser id = "wdcStartDate" runat = "server" EnableAppStyling = "True" NullDateLabel = "" StyleSetName = "eWERKS3" styleetpath = "~ / App_Themes /" MinDate = "2009-01-01" /> & Lt; Asp: RequiredFieldValidator id = "rfvStartDate" runat = "server" ControlToValidate = "wdcStartDate" display = "none" error message = "Start date is required." Validation group = "access" /> & Lt; Cc1: valuer calloutEpender ID = "vceStartDate" runat = "server" CloseImageUrl = "~ / images / close.gif" Highlight CSS class = "valid callout highlight" targetcontrol ID = "RFV startup" warning IconImageUrl = "~ / images / back_warning2. Gif "/>  

Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -