[心缘地方]同学录
首页 | 功能说明 | 站长通知 | 最近更新 | 编码查看转换 | 代码下载 | 常见问题及讨论 | 《深入解析ASP核心技术》 | 王小鸭自动发工资条VBA版
登录系统:用户名: 密码: 如果要讨论问题,请先注册。
发表人 主题:用JavaScript写ASP时,注意Request.Form和Request.Query...变量
嘎嘎,是我
身份:admin
发帖:1435
登陆次数:3221
1F 发表于 2007/4/4 16:47:31
http://support.microsoft.com/kb/296169/en-us
===================================================
Request.Form("xx")和Request.QueryString("xx")返回的是Object,不是String。

--------------------------------------------
Microsoft Windows 2000 (Internet Information Services 5.0): 
Error Type:
Session object, ASP 0168 (0x80004005)
An intrinsic object cannot be stored within the Session object.
/virdir/page.asp, line 4 

----------------------------------------------
错误写法:
<%
  Session("test") = Request.Form("txt");
%>
                
正确写法:
<%
  Session("test") = Request.Form("txt").Item;
%>



 
标题:
消息图标:                                             
                                            
正文:



* UBB 代码开启

 
CopyRight © 心缘地方 2005-2999. All Rights Reserved