确认 取消框为什么会弹2次????
本帖最后由 allin1987 于 2013-10-21 08:39:27 编辑
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>