<asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server"> <contenttemplate> <asp:Label ID="Label1" runat="server" Text=""> <asp:DropDownList ID="drpSecret" runat="server" Height="16px" onselectedindexchanged="drpSecret_SelectedIndexChanged" Width="213px" AutoPostBack="True" > <asp:ListItem>1 <asp:ListItem>2 </contenttemplate> <triggers> <asp:AsyncPostBackTrigger ControlID="drpSecret" EventName="SelectedIndexChanged" /> </triggers>
protected void drpSecret_SelectedIndexChanged(object sender, EventArgs e) { Label1.Text = drpSecret.SelectedItem.Text; }
<asp:updatepanel id="UpdatePanel1" updatemode="Conditional" xmlns:asp="#unknown"> runat="server"> <triggers> <asp:asyncpostbacktrigger controlid="drpSecret" eventname="SelectedIndexChanged" /> </triggers> <contenttemplate> <asp:dropdownlist id="drpSecret" runat="server" height="16px" onselectedindexchanged="drpSecret_SelectedIndexChanged" width="213px"> AutoPostBack="True" > <asp:listitem>1 <asp:listitem>2 </asp:listitem></asp:listitem></asp:dropdownlist></contenttemplate> </asp:updatepanel>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)