Finding Hidden ASP Variables
Finding Hidden ASP Variables
am 03.07.2007 19:07:41 von Robby
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?
Re: Finding Hidden ASP Variables
am 03.07.2007 19:26:13 von Anthony Jones
wrote in message
news:1183482461.585885.247880@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.
Re: Finding Hidden ASP Variables
am 03.07.2007 19:48:13 von Robby
On Jul 3, 1:26 pm, "Anthony Jones" wrote:
> wrote in message
>
> news:1183482461.585885.247880@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)
%>
Re: Finding Hidden ASP Variables
am 03.07.2007 20:00:14 von reb01501
robby@angleinteractive.com wrote:
> On Jul 3, 1:26 pm, "Anthony Jones" wrote:
>> wrote in message
>>
>> news:1183482461.585885.247880@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) & """
"
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.
Re: Finding Hidden ASP Variables
am 03.07.2007 20:19:53 von Jon Paal
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.
wrote in message news:1183482461.585885.247880@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?
>