日期:2014-05-17 浏览次数:20451 次
protected void Page_Load(object sender, EventArgs e)
{
ASPxButton1.Attributes.Add("onclick", "return confirm('您真的要删除吗?');");
}
<dx:ASPxButton ID="ASPxButton1" runat="server" Text="删除" >
<dx:ASPxButton ID="ASPxButton1" runat="server" Text="保存" ClientIDMode="AutoID" SkinID="sure"
CausesValidation="true" OnClick="th_save_click">
<ClientSideEvents Click="function(s, e) {
e.processOnServer = confirm('确定要执行[删除]操作吗');
}" />
</dx:ASPxButton>