<asp:DropDownList runat="server" ID="DDLState" CssClass="txtp" onselectedindexchanged="DDLState_SelectedIndexChanged" AutoPostBack="True" AppendDataBoundItems="True" > <asp:ListItem>Select State</asp:ListItem> </asp:DropDownList>
<asp:Button runat="server" ID="btnsubmit" Text="Submit" BackColor="Silver" onclick="btnsubmit_Click" />
protected void btnsubmit_Click(object sender, EventArgs e) { DDLState.SelectedIndex=2; }
Quote:Are you sure?
Quote:The SelectedIndexChanged event is raised when the selection from the list control changes between posts to the server.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)