intrinsic object error

Results 1 to 3 of 3

Thread: intrinsic object error

  1. #1
    Ruud Guest

    Default intrinsic object error

    Why is the following statement only valid in VBS and not in JScript:<BR><BR>Session("userid") = Request.Form("userid");<BR><BR>JScript generates error:<BR>ASP 0168; An intrinsic object cannot be stored within the Session object.<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: intrinsic object error

    Because in JScript you need to explicitly refer to Request.Form("userid").Value, I think.<BR><BR>Dunc

  3. #3
    Join Date
    Dec 1969

    Default more or less right

    JScript, while it&#039s loosely typed, has stronger type support than VBScript, so has problems with things like this if you don&#039t take care (which is GOOD)<BR><BR>Session("myVar") = new String(Request.Form("whatever").value)<BR><BR>will put it there as a string, which is what you wanted, rather than an object reference or intrinsic object.<BR><BR>All praise to ASP JScripters!!<BR><BR>jason

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts