Hello,
I have 3 dropdown list. All 3 are required field validators.
On Selected index change of country, state dropdown is going to fill and on selected index change of state, city dropdown is going to fill.
Now, the issue is, when i click on register button click, without filling any details in form, all validations are coming properly.
Now,when i select country, the validation message of country disappers. that part is working perfectly.
But when i select any state, the validation message is not going to disapper.
For that, i have removed eventname from asynctrigger of update panel. Now, validation message for state is going to disapper, but city field is not going to bind because we removed trigger event.
My requirement is if someone select country, then country validation message should disapper. State and city validation message should be there. If i select state, then state validation message should disappear, city validation message should be available.
I am sending my code as below,
<div class="time_lne">
<label>
<span>
<img src="images/red_error.png" alt="error" /></span> Country</label>
<asp:UpdatePanel ID="uppnlCountry" runat="server">
<ContentTemplate>
<asp:DropDownList ID="ddlCountry" CssClass="select_ex" Width="304px" AutoPostBack="true"
runat="server" OnSelectedIndexChanged="ddlCountry_SelectedIndexChanged">
</asp:DropDownList>
</ContentTemplate>
</asp:UpdatePanel>
<span>
<asp:RequiredFieldValidator ID="reqCountry" runat="server" ErrorMessage="This Field is required"
ForeColor="Red" ControlToValidate="ddlCountry"></asp:RequiredFieldValidator>
</span>
</div>
<div class="time_lne">
<label>
<span>
<img src="images/red_error.png" alt="error" /></span> Province</label>
<asp:UpdatePanel ID="uppnlState" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:DropDownList ID="ddlState" CssClass="select_ex" Width="304px" AutoPostBack="true"
runat="server" OnSelectedIndexChanged="ddlState_SelectedIndexChanged">
</asp:DropDownList>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ddlCountry" EventName="SelectedIndexChanged" />
</Triggers>
</asp:UpdatePanel>
<span>
<asp:RequiredFieldValidator ID="reqState" runat="server" ErrorMessage="This Field is required"
ForeColor="Red" ControlToValidate="ddlState"></asp:RequiredFieldValidator>
</span>
</div>
<div class="time_lne">
<asp:UpdatePanel ID="uppnlCity" runat