DropDown List Validation

Total Post:183


 1117  View(s)
Rate this:

I need to perform a validation to check whether a TextBox value is empty on Dropown list selected Index change using validation controls in asp.net

  1. Re: DropDown List Validation

    Hi Ankita, 

    I hope this will work fine.

        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:DropDownList ID="DropDownList1" runat="server" CausesValidation="true" AutoPostBack="true">
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="TextBox1" runat="server" ErrorMessage="Please Enter the Value"></asp:RequiredFieldValidator>

      Modified On Apr-04-2018 06:37:11 AM


Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.