例子参考
http://dotnet.aspx.cc/article/4ae836f8-ccb4-4bef-90b1-25bb1a5e6433/read.aspx
http://dotnet.aspx.cc/article/4ae836f8-ccb4-4bef-90b1-25bb1a5e6433/read.aspx
解决方案 »
- zedgraph滚动条的问题
- C# 登陆校内网
- winform中 datagrid添加样式后打开显示速度很慢,如何解决
- 超级简单的Request.QueryString问题!
- 我在把数据库里的二进制图片转换成jpg格式时,遇到了System.Drawing.Image image = System.Drawing.Image.FromStream(ms,true);使用了无
- 怎样在一个TXT文件中把每一行的数据读入数据表中
- winform动态生成窗体,显示动态数据
- 高分求教:.net中有没有类似于VB中的ole控件
- 请教关于打印控制的问题
- 请教几个有关文件操作的问题
- 【200分】一个游戏辅助工具,计算两点之间距离,请大家帮忙。帮顶有分啊
- C#的两种数据类型转换有有区别?
//提交数据
var url = '/CMail/Vote/RCP/RCP_AddVote.aspx?action=add&f='+Math.random();
var myAjax = new Ajax.Request(
url,
{
method: 'post',
postBody: xml,
onComplete: showResponse,
onCreate: showLoading,
asynchronous:true
});
function showResponse(originalRequest)
{
Element.hide('spanDataLoding');
if(originalRequest.responseText=="-1")
{
alert("未登录,或已超时!");
}
}
function showLoading()
{
Element.show('spanDataLoding');
} public partial class RCP_AddVote : ICS.SmsDisk.Base.CMailPageBase
{
private XmlDocument xmlDoc = null; protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPower)
{
Response.Write("-1");
return;
}cs文件 //System.Threading.Thread.Sleep(2000);
getPostData(HttpContext.Current);
if (Request["action"] != null && Request["action"].ToString().ToLower() == "add")
{
AddDate();
} }
//提交数据
var url = '/CMail/Vote/RCP/RCP_AddVote.aspx?action=add&f='+Math.random();
var myAjax = new Ajax.Request(
url,
{
method: 'post',
postBody: xml,
onComplete: showResponse,
onCreate: showLoading,
asynchronous:true
});
function showResponse(originalRequest)
{
Element.hide('spanDataLoding');
if(originalRequest.responseText== "-1 ")
{
alert( "未登录,或已超时! ");
}
}
function showLoading()
{
Element.show('spanDataLoding');
}
cs文件 public partial class RCP_AddVote : ICS.SmsDisk.Base.CMailPageBase
{
private XmlDocument xmlDoc = null;
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPower)
{
Response.Write( "-1 ");
return;
}
//System.Threading.Thread.Sleep(2000);
getPostData(HttpContext.Current);
if (Request[ "action "] != null && Request[ "action "].ToString().ToLower() == "add ")
{
AddDate();
}
}
if(originalRequest.responseText== "-1 ")
{
alert( "未登录,或已超时! ");
}
引发错误