.aspx
<div>
<h4>PopupControlExtenderh4>
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:TextBox ID="txtPopUp" runat="server">asp:TextBox>
<asp:Panel ID="PanelPopUp" runat="server">
<asp:RadioButtonList ID="rbtnList" runat="server" AutoPostBack="True" OnSelectedIndexChanged="rbtnList_SelectedIndexChanged">
<asp:ListItem Value="A">Aurangabadasp:ListItem>
<asp:ListItem Value="B">Banarasasp:ListItem>
<asp:ListItem Value="AL">Allahabadasp:ListItem>
<asp:ListItem Value="M">Mumbaiasp:ListItem>
asp:RadioButtonList>
asp:Panel>
<myAjax:PopupControlExtender ID="PopupControlExtender1" runat="server"
TargetControlID="txtPopUp"
PopupControlID="PanelPopUp"
CommitProperty="value"
Position="Bottom">
myAjax:PopupControlExtender>
ContentTemplate>
asp:UpdatePanel>
div>
.aspx.cs
protected void rbtnList_SelectedIndexChanged(object sender, EventArgs
e)
{
PopupControlExtender1.Commit(rbtnList.SelectedValue);
}
Comments