Regards, Sheo Narayan http://www.dotnetfunda.com
LP MER
TextBox1.Text = string.Empty;
CheckBox2.Checked = false; RadioButton1.Checked = false;
<asp:DropDownList ID="DropDownList2" AutoPostBack="true" runat="server" onselectedindexchanged="DropDownList2_SelectedIndexChanged"> <asp:ListItem Value="0" >--select--</asp:ListItem> <asp:ListItem Value="1" >item1</asp:ListItem> <asp:ListItem Value="2" >item2</asp:ListItem> <asp:ListItem Value="3" >item3</asp:ListItem> </asp:DropDownList>
DropDownList2.SelectedValue = "0";
Thanks & Regards,
void GetAllTextBox(Control ctrl) { if (ctrl != null) { foreach (Control c in ctrl.Controls) { if (c is TextBox) { ((TextBox)c).Text = String.Empty; } } } }
If this helps you . Please "Mark as Answer"
Regards, Susan
Himanshu Manjarawala Sr. Software Engineer@AutomationAnywhere http://fieredotnet.wordpress.com/
Login to post response