A
abcd
I am using AjaxControlToolKit and using ServerSideValidationExtender for
validation. When I use below code in aspx file it works fine. But when I wrap
this code in another userControl (ascx) the event is not fired for the first
time and validation is not performed but the code works well for second time
as the event is fired. Why this mystery is there any clues why the first
time validation is not performed also validation is inconsistant
<uctValidationropertyProxyValidator runat="server" ID="ppvAirportCode"
ControlToValidate="txtAirportLocation"
Display="None" DisplayMode="List"
ValidationGroup="FlightFare" PropertyName="Origin" SetFocusOnError="true"
Visible="true"
SourceTypeName="Test.Data " EnableViewState="false"
OnValueConvert="ppvAirportCode_ValueConvert"/>
<ajaxtoolkitwcsfextensions:ServerSideValidationExtender runat="server"
ID="ValidationExtender1"
TargetControlID="ppvAirportCode" ValidateEmptyText="true" />
<ajaxControlToolkit:ValidatorCalloutExtender runat="server"
ID="vceAirportPicker" TargetControlID="ppvAirportCode"/>
validation. When I use below code in aspx file it works fine. But when I wrap
this code in another userControl (ascx) the event is not fired for the first
time and validation is not performed but the code works well for second time
as the event is fired. Why this mystery is there any clues why the first
time validation is not performed also validation is inconsistant
<uctValidationropertyProxyValidator runat="server" ID="ppvAirportCode"
ControlToValidate="txtAirportLocation"
Display="None" DisplayMode="List"
ValidationGroup="FlightFare" PropertyName="Origin" SetFocusOnError="true"
Visible="true"
SourceTypeName="Test.Data " EnableViewState="false"
OnValueConvert="ppvAirportCode_ValueConvert"/>
<ajaxtoolkitwcsfextensions:ServerSideValidationExtender runat="server"
ID="ValidationExtender1"
TargetControlID="ppvAirportCode" ValidateEmptyText="true" />
<ajaxControlToolkit:ValidatorCalloutExtender runat="server"
ID="vceAirportPicker" TargetControlID="ppvAirportCode"/>