'Sys._Application' cannot be converted to type 'Sys._Application' 错误
来源:互联网 发布:xp自动修复软件 编辑:程序博客网 时间:2024/05/17 10:07
今天有个网友问了个问题,帮忙查找资料后解决!
问题描述如下:
请教大家一个问题,我在主页上面添加了一个注销按钮来退出系统:
<asp:LinkButton id="LogoutBtn" runat="server" onclick="Logout" plain="true">[注销登录]</asp:LinkButton>
后台函数代码:
protected void Logout(object sender, EventArgs e)
{
Session.Contents["LoadGuid"] = "";
Session.Contents["LoadGuid"] = "";
SLoadStat = "timeout";
SLoadName = "";
SLoadGuid = "";
Response.Write("<script>window.location.href='../Default.aspx';</script>");
}
可是点击时总弹出错误对话框:
<asp:LinkButton id="LogoutBtn" runat="server" onclick="Logout" plain="true">[注销登录]</asp:LinkButton>
后台函数代码:
protected void Logout(object sender, EventArgs e)
{
Session.Contents["LoadGuid"] = "";
Session.Contents["LoadGuid"] = "";
SLoadStat = "timeout";
SLoadName = "";
SLoadGuid = "";
Response.Write("<script>window.location.href='../Default.aspx';</script>");
}
可是点击时总弹出错误对话框:
查找资料后说是
<asp:ScriptManager ID="ScriptManager1" runat="server" ScriptMode="Release">
这样就可以解决,经过试验,确实如此。
原文链接为:
http://social.msdn.microsoft.com/Forums/zh-CN/sharepoint2010programming/thread/50b18cc2-3361-4539-87bc-e50d8f10445e
- 'Sys._Application' cannot be converted to type 'Sys._Application' 错误
- Value of type java.lang.String cannot be converted to JSONObject 错误解决
- Unable to cast COM object of type 'Word.ApplicationClass' to interface type 'Word._Application'"
- model cannot be converted to JSONObject
- JSONObject cannot be converted to JSONArray
- 'AddressOf' expression cannot be converted to 'Long' because 'Long' is not a delegate type.解决办法
- Value of type java.lang.String cannot be converted to JSONObject
- Value of type java.lang.String cannot be converted to JSONObject
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONArra
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSON
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
- Android : Value of type java.lang.String cannot be converted to JSONObject 异常
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
- 指向函数的指针、typedef、奇特的声明
- SecureCRT上传和下载文件(下载默认目录)
- 内核模块基础
- 揭秘:房事怎么做最养人?
- 自定义UITableViewCell上的delete按钮
- 'Sys._Application' cannot be converted to type 'Sys._Application' 错误
- 使用etop工具监测Erlang运行环境
- 你的代码值多少钱 ?你算过吗
- frameset和iframe的区别
- IOS UITableView下拉刷新
- Js中的window.parent ,window.top,window.self 详解
- Unity资源工作流程(Asset Workflow)
- Yahoo! UI Library (YUI)
- 内核链表基础