>>>提交按钮,首先会出现一次页面刷新,然后再执行按钮的后台事件this is not true, if you click a submit button, 按钮的后台事件 will be executed first, then the output followsif you need a waiting page, depending on what you are doing, you can try...save the data
Response.Redirect("waiting.aspx");
in waiting.aspx:
<META http-equiv="refresh" content="1;url=yourworking.aspx">
Response.Redirect("waiting.aspx");
in waiting.aspx:
<META http-equiv="refresh" content="1;url=yourworking.aspx">
解决方案 »
- asp.net 能调用网站外部文件夹吗?
- 博客园(www.cnblogs.com)里发表文章时插入代码功能的实现
- 如何解决用dataview显示记录时,查询不满足条件的时候,就会显示一块空白
- UpdatePanel装用户控件注册了脚本了但是在隐藏文件提示:"Microsoft JScript 运行时错误: 'null' 为空或不是对象"
- 如何求GridView控件的记录总数
- 请问大家如何用正则表达式来限制DataGrid中每列数据的长度
- RegularExpressionValidator验证控件的使用
- Asp.net连接Orcal数据库字段乱码的问题
- 关于ASP.NET 网站图片问题。
- 在线等待~~OleDbConnection出现错误
- 对于webservice的置疑!!
- 初学者:关于代码共享的问题?
<input type=botton id=savebtt value=保存 runat=server>
这样的按钮,我点击后本来就是先刷新页面,然后才会执行事件程序啊。你说的submit提交,是在提交页面的page_onload内执行的程序,问题是我的程序放在
private void savebtt_ServerClick(object sender, System.EventArgs e)
{
...
}
里面的。不刷新怎么会执行呢?