简单的Ajax提示窗口。
有个检查操作是否成功的功能。流程是。
用户 提交 数据后 ,在后台处理。然后 根据 情况 返回 提示。
提示用 div
help
ScriptManager.RegisterClientScriptBlock(UpdatePanel1, this.GetType(),
"Alert", "alert('提交成功!!!')", true);
10分
怎樣根據返回 值判斷阿?
上面的方法 只是 單純的 附加了個 js
System.Web.UI.ScriptManager.RegisterClientScriptBlock(Me.CustInfoSUp, GetType(UpdatePanel), "Alert", "alert('提交成功!!!')", True)
我這樣寫,提交後,沒有反應。 custinfosUp 是 updatepanel
用jQuery在body中生成一个DIV,然后属性添加绝对坐标,然后调用.Show()。类似一个遮盖效果。
在ajaxcomplete方法里添加你要的效果,比如隐藏loading、弹出“成功”等提示
各个js框架的ajaxcomplete方法应该不同,你查查你用的
相关问答:
想知道怎么在DW中运行Ajax
我运行的文件报这个错..
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
Fatal error: Unknown: Failed opening requir ......
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1&q ......
C# code:
<script type="text/javascript">
window.onload=function()
{
startRequest('get','../College.ashx','lxyc=2&time='+new Date().getTime()+'',ShowIt,true);
}
var xml ......
这个公司也干了好长时间了。自从使用AJAX开始就用的是ASP.NET AJAX安装包。 使用的不多,对内核中XMLHttprRequest如何处理的也不知道。对其他公司试用的情况也不知道。请教一下,现在大家都只用什么开发AJAX。都在使 ......