//无刷新控件

<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
    <ContentTemplate>

    </ContentTemplate>
    </asp:UpdatePanel>

使用无刷新控件时, <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click" OnClientClick="if(confirm('确定删除吗?')){return true;}else{return false;}">删除</asp:LinkButton>//提示窗口

ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "", "window.open('" + editURL + "','newwindow','height=700,width=800,left=500,top=150');window.open('" + url + "','_blank','height=700,width=800');", true);//弹出窗口

posted @ 2013-03-25 16:02  xw2cc  阅读(110)  评论(0编辑  收藏  举报