我有一个gridview
与checkbox
在第一列。我设置了checkbox
财产autopostback="true"
。 gridview
位于updatepanel
之内。当checkbox
是checked
我想使一个panel
可见,哪个面板在更新面板之外。我用检查点检查代码,这是通过代码,但它不工作。任何人都可以帮我吗?在更新面板内的gridview内的复选框
在此先感谢。
我的代码是在这里,供大家参考......
HTML代码:
<asp:Panel ID="ploperation" runat="server" CssClass="plop" Visible="False">
<asp:LinkButton ID="lbtnasspam" runat="server" CssClass="panelbtn" Font-Names="Calibri"
Font-Size="14px" Font-Underline="False" OnClick="lbtnasspam_Click">Report As Spam</asp:LinkButton>
</asp:Panel>
<asp:UpdatePanel ID="up" runat="server">
<ContentTemplate>
<asp:GridView ID="gvmail" runat="server" AllowPaging="True" AutoGenerateColumns="False">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox ID="chkchild" runat="server" AutoPostBack="true" OnCheckedChanged="chkchild_CheckedChanged"/>
</ItemTemplate>
<ItemStyle Width="15px" />
</asp:TemplateField>
</Columns>
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
C#代码:
protected void chkchild_CheckedChanged(object sender, EventArgs e)
{
ploperation.Visible = true;
}
更新面板做局部页面加载....所以如果u瓦纳显示面板乌尔比还包括在乌拉圭回合的更新面板。 – 2013-04-10 06:02:23
@AmitSingh谢谢..其更新面板中的作品... – ragu 2013-04-10 06:13:02
@AmitSingh是否有可能在更新面板之外进行此操作? – ragu 2013-04-10 06:13:55