hide and view in server side using selected index changed

Apr 13 2019 5:26 AM
hi friends
im created client side table to call the server side using ddlbox changed events its not hide
This is my ddlbox event::
protected void ddl_rectfication_type_SelectedIndexChanged(object sender, EventArgs e)
if (ddl_rectfication_type.SelectedItem.Text == "PRE" || ddl_rectfication_type.SelectedItem.Text == "FTS")
pres.Visible = true;
shift.Visible = false;
if (ddl_rectfication_type.SelectedItem.Text == "CWS")
pres.Visible = false;
shift.Visible = true;
first table :::
<table id="shift" runat="server">
<td> <asp:Label ID="lbl_shift" runat="server">Shift Timing</asp:Label></td>
<td> <asp:DropDownList ID="ddl_shift" AutoPostBack="true" runat="server"></asp:DropDownList></td>
second table ::
<table id="pres" runat="server">
<td class="auto-style3"> <asp:Label ID="lbl_present_In_time" runat="server">Present IN Time</asp:Label></td>

Answers (1)