Q:

Next textbox disable in ASP.net

I want to add one validation like if Status is "Accept" then QtyRejected get disable 

Below is my ASP code for status and qtyRejected 
<td>
                        <asp:DropDownList ID="lAccept" runat="server" Height="25px" Width="102px">
                            <asp:ListItem>Accept</asp:ListItem>
                            <asp:ListItem>Reject</asp:ListItem>
                        </asp:DropDownList>

                    </tr>
                <tr> 
                    <td width="30%">
                        <b>Qty Rejected:</b> 
                    </td>

                    <td>
                        <asp:TextBox ID="lRejectedQty" runat="server" CausesValidation="True"></asp:TextBox>
                      <%--  <asp:CustomValidator ID="CustomValidator1" runat="server" 
                            ErrorMessage="Only interger between 1 to 10000000 " ondisposed="Page_Load" 
                            oninit="Page_Load" onservervalidate="CustomValidator1_ServerValidate"></asp:CustomValidator>--%>

                    </td>   

                </tr>

A:

protected void Page_Load(object sender, EventArgs e)
{
    if (Page.IsPostBack)
    {
        if (lAccept.SelectedItem.Text == "Accept")
        {
            lRejectedQty.Enabled = false;
        }
    }
}

