Finding Hidden ASP Variables

I'm working on an ASP page that calls variables from another ASP page
that I am unable to access. Is there any way to call all active
variables from the other page and list them out, so I can find the
variable names that I need to work with?
Robby [ Di, 03 Juli 2007 19:07 ] [ ID #1758642 ]

Re: Finding Hidden ASP Variables

<robby [at] angleinteractive.com> wrote in message
news:1183482461.585885.247880 [at] q69g2000hsb.googlegroups.com.. .
> I'm working on an ASP page that calls variables from another ASP page
> that I am unable to access. Is there any way to call all active
> variables from the other page and list them out, so I can find the
> variable names that I need to work with?
>

An ASP page can not have 'active variables' if it is not currently
executing. You can store values you want to use in other pages in the
Session object e.g.,

'Page1.asp
<%

Session("mystuff") = "Hello World"

%>

'Page2.asp
<%
Response.Write Session("mystuff")
%>

Having hit page1 first page2 generates Hello World as output.
Anthony Jones [ Di, 03 Juli 2007 19:26 ] [ ID #1758643 ]

Re: Finding Hidden ASP Variables

On Jul 3, 1:26 pm, "Anthony Jones" <A... [at] yadayadayada.com> wrote:
> <r... [at] angleinteractive.com> wrote in message
>
> news:1183482461.585885.247880 [at] q69g2000hsb.googlegroups.com.. .
>
> > I'm working on an ASP page that calls variables from another ASP page
> > that I am unable to access. Is there any way to call all active
> > variables from the other page and list them out, so I can find the
> > variable names that I need to work with?
>
> An ASP page can not have 'active variables' if it is not currently
> executing. You can store values you want to use in other pages in the
> Session object e.g.,
>
> 'Page1.asp
> <%
>
> Session("mystuff") = "Hello World"
>
> %>
>
> 'Page2.asp
> <%
> Response.Write Session("mystuff")
> %>
>
> Having hit page1 first page2 generates Hello World as output.

My problem here is that I cannot see page one, so I'm looking for
something like this...

'Page1.asp
<%
Session("mystuff") = "Hello World"
%>

'Page2.asp
<%
FindAndOutoutVariables (or something that would spit out "mystuff,"
thus allowing me to call the variable)
%>
Robby [ Di, 03 Juli 2007 19:48 ] [ ID #1758645 ]

Re: Finding Hidden ASP Variables

robby [at] angleinteractive.com wrote:
> On Jul 3, 1:26 pm, "Anthony Jones" <A... [at] yadayadayada.com> wrote:
>> <r... [at] angleinteractive.com> wrote in message
>>
>> news:1183482461.585885.247880 [at] q69g2000hsb.googlegroups.com.. .
>>
>>> I'm working on an ASP page that calls variables from another ASP
>>> page that I am unable to access. Is there any way to call all active
>>> variables from the other page and list them out, so I can find the
>>> variable names that I need to work with?
>>
>> An ASP page can not have 'active variables' if it is not currently
>> executing. You can store values you want to use in other pages in
>> the Session object e.g.,
>>
>> 'Page1.asp
>> <%
>>
>> Session("mystuff") = "Hello World"
>>
>> %>
>>
>> 'Page2.asp
>> <%
>> Response.Write Session("mystuff")
>> %>
>>
>> Having hit page1 first page2 generates Hello World as output.
>
> My problem here is that I cannot see page one, so I'm looking for
> something like this...
>
> 'Page1.asp
> <%
> Session("mystuff") = "Hello World"
> %>
>
> 'Page2.asp
> <%
> FindAndOutoutVariables (or something that would spit out "mystuff,"
> thus allowing me to call the variable)

dim key
for each key in session
response.write "session(""" & key & """) contains """ & _
session(key) & """<br>"
next
> %>

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
reb01501 [ Di, 03 Juli 2007 20:00 ] [ ID #1758646 ]

Re: Finding Hidden ASP Variables

if you know the path to the file you could use the file system object and read the file then displey the contents as text.


<robby [at] angleinteractive.com> wrote in message news:1183482461.585885.247880 [at] q69g2000hsb.googlegroups.com.. .
> I'm working on an ASP page that calls variables from another ASP page
> that I am unable to access. Is there any way to call all active
> variables from the other page and list them out, so I can find the
> variable names that I need to work with?
>
Jon Paal [ Di, 03 Juli 2007 20:19 ] [ ID #1758648 ]
Webserver » microsoft.public.inetserver.asp.general » Finding Hidden ASP Variables

Vorheriges Thema: Error in loading DLL: 'cdoConfig.Fields'
Nächstes Thema: No data returned.