悬赏园豆:30
[已解决问题]
解决于 2008-08-24 19:50
<P>“PopupControlExtender”并不包含“GetProxyForCurrentPopup”的定义 </P>
<P>protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)<BR> {<BR> if (RadioButtonList1.SelectedValue != null)<BR> {<BR> PopupControlExtender.GetProxyForCurrentPopup(this.Page).Commit(RadioButtonList1.SelectedValue);<BR> <BR> }<BR> RadioButtonList1.ClearSelection();</P>
<P> }</P>
<P>HTML代码:</P>
<P> <asp:ScriptManager ID="ScriptManager1" runat="server"><BR> </asp:ScriptManager><BR> <br /><BR> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br /><BR> <br /><BR> <asp:Panel ID="Panel2" CssClass="popupbox" runat="server" Height="50px" Width="125px"><BR> <asp:UpdatePanel ID="UpdatePanel1" runat="server"><BR> <ContentTemplate><BR> <asp:RadioButtonList AutoPostBack="true" ID="RadioButtonList1" runat="server" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged"><BR> <asp:ListItem Text="广州市"></asp:ListItem><BR> <asp:ListItem Text="佛山市"></asp:ListItem><BR> <asp:ListItem Text="深圳市"></asp:ListItem><BR> <asp:ListItem Text="东莞市"></asp:ListItem><BR> </asp:RadioButtonList><BR> </ContentTemplate><BR> </asp:UpdatePanel><BR> </asp:Panel><BR> &nbsp;<br /><BR> <ajaxToolkit:PopupControlExtender ID="PopupControlExtender1" TargetControlID="TextBox1" PopupControlID="Panel1" CommitScript="e.value;" Position="Bottom" CommitProperty="value" runat="server"><BR></ajaxToolkit:PopupControlExtender></P>
代码示例
|
初学一级
|
园豆:
49
提问于:2008-08-14 11:49