Confirm Box in Asp.Net

来源:互联网 发布:python面向对象例子 编辑:程序博客网 时间:2024/05/16 05:06

1, in the back-end us the attributes added

 imgReactivateList.Attributes.Add("onclick", "return confirmMsg('Do you wish to put this property back Online?');")


2, at the front-end use the client onclick

 <asp:Button ID="Delete_Profile" runat="server" CssClass="submitBtn"                         Text="Delete Profile" onclick="Delete_Profile_Click" OnClientClick = " return confirm('Are you sure to Delete your Profiles ?');"/>