点击按钮后还未选择确认提交就跳到后台去了,请问如何解决
前台aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="dialog.aspx.cs" Inherits="dialog" %>
无标题页
后台aspx.cs
protected void Button1_Click(object sender, EventArgs e)
{
Response.Write("");
}

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
http://www.tuicool.com/articl...
参照layer.confirm解决了问题
①为按钮添加UseSubmitBehavior="false"
②前台
③后台