Ask a Question related to ASP, Design and Development.
-
Ray at #1
Re: Type mismatch Session error
You'll need to post a snippet of relevant code.
Ray at work
"TD" <TurboDuster@noyahoospam.com> wrote in message
news:3f3be8a3$0$196$75868355@news.frii.net...> I'm getting a 800a000d Type_mismatch:_'Session(...)' error message in
> my web page log when outside people try to access an ASP page. The page
> works fine on my intranet. I'm not sure what this message mean, but I
> am using Session variables between two pages. The first page which sets
> the variable seems to work fine. It's reading the second page that
> things fail.
> Any help?
> Thanks,
> TD
>
>
> * * * Sent via DevBuilder [url]http://www.devbuilder.org[/url] * * *
> Developer Resources for High End Developers.
Ray at Guest
-
Type mismatch error
This query works fine on a live server using an MSSQL database: <cfquery name="qIndex" datasource="#appDSN#" username="shampoo"... -
data type mismatch error...
HI guys, getting pretty stressed with this haha! it's probably something simple...right I have this registration form that does multiple checks... -
0x800A000D - Type Mismatch Error
I am not sure what is goint on. Here's my code inWeekStart = "11" inWeekEnd = "14" Compyear = "2003" Dim rsSQL, strSQL, cmSQL dim... -
Confused with the type mismatch error
I tried your simple example and got no type mismatch. I even modified it so that I was comparing a string to a number and got no type mismatch (it... -
Long Raw Type Mismatch error
I'm new to using long raw fields with ASP. I know it would be easier to leave the files on the file system, but the client wants them in the... -
TD #2
Re: Type mismatch Session error
Ok, here is the first page, the one that works ok:
<%@ Language=VBScript %><%Response.ContentType =
"text/HTML"%><%Response.expires=0 %>
<%
If Request.QueryString("numrecords") > 0 Then
Dim filenam
Dim stotal
stotal = Request.QueryString("numrecords")
Dim Sstotal
Dim sarray(10)
Dim i
For i = 0 to (stotal - 1)
filenam = Request.QueryString("sname")(i + 1)
sarray(i) = filenam
Next
Session("Sstotal") = stotal
Session("sArray") = sarray
End If
%>
<HTML>
blah blah web page that calls itself and feeds it's form into the array
above when the user submits the form. At that time it also launches a
popup window that looks at the second ASP page for it's data.
Here is the second ASP page:
<%Response.ContentType = "text/HTML"%><%Response.expires=0 %>
<%
Dim filenam
Dim i
Dim QQ
QQ = CHR(34)
If Session("Sstotal") < 2 Then
filenam = Session("sArray")(0)
Response.Write "Blah blah" & QQ & "blah" & vbCRLF
Response.Write "<a href = " & QQ & filenam & QQ & "/>" & vbCRLF
Response.Write "You get the idea" & vbCRLF
End If
%>
If I have someone call the second ASP file directly (and hard code a
file name into it so no variables are used) the file will work. If I
have someone access the popup page directly, having it call the same ASP
(hard coded) page it doesn't work.
It seems that the ASP script is working ok, it's just when it attempts
to read the second pages session variables that it fails. Or maybe it's
failing to set the Session variables on the first page. Oddly all this
works for users logged into the internal network. No problems. Only
people outside the network, from the internet, can't use it. Could the
fact that I'm using a popup affect the session state? Maybe creating two
states for each user at one time? Could this be a port issue on my
firewall? One other related thing is when the user ends the session, is
all the memory used by the session array returned for sure? If not how
can I force it to be? The site only allows three users at a time so
concurrent memory use isn't an issue, but if it isn't being returned
then over time I'll have a problem.
Thanks,
TD
* * * Sent via DevBuilder [url]http://www.devbuilder.org[/url] * * *
Developer Resources for High End Developers.
TD Guest



Reply With Quote

