1.给服务器端控件添加<asp:LinkButton ID="LinkButton2" runat="server" onclick="LinkButton2_Click">,
后台代码为 LinkButton2.Attributes.Add("onclick", "return confirm('你确定要注销吗?');");