Microsoft KB Archive/296169
Article ID: 296169
Article Last Modified on 8/15/2001
- Microsoft Active Server Pages 4.0
This article was previously published under Q296169
You receive the following error message on a computer that is running Microsoft Windows 2000 (Internet Information Services 5.0):
The values that Request.Form and Request.QueryString return are actually objects rather than strings. This problem occurs because you cannot store Active Server Pages (ASP) intrinsic objects in Session variables.
To resolve this problem, perform the necessary explicit casting by using the .Item property of the Request.Form (or Request.QueryString) object.
<% Session("test") = Request.Form("txt"); %>
To correct this code sample, add the .Item property as follows:
<% Session("test") = Request.Form("txt").Item; %>
For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
173317 INFO: Active Server Pages' Request.Form and Request.QueryString Return Objects
Additional query words: 80004005 0x80004005
Keywords: kbaspobj kbprb KB296169