protected void DropDownListdes_SelectedIndexChanged(object sender, EventArgs e) { Label1.Text = DropDownListdes.SelectedItem.ToString(); if (Label1.Text == "student") { Labelyr.Visible = true; DropDownListyr.Visible = true; Labelroll.Visible = true; collegerollno.Visible = true; } else if (Label1.Text == "principal") { DropDownListdept.Items[3].Enabled = true; LabelEID.Visible = true; TextBoxEID.Visible = true; } else { LabelEID.Visible = true; TextBoxEID.Visible = true; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)