Connecting Tech Pros Worldwide Forums | Help | Site Map

Seeting the value of ASP variable from other page

Newbie
 
Join Date: Sep 2009
Location: India
Posts: 9
#1: Sep 4 '09
Hi,

I have an ASP page with 3 frames on it. The let frame will have Index (in Tree Structure format) right one is the Content Frame shows the contents on the selected node.

The bottom frame as next and previous buttons.

My work is to make those next and previous buttons to move according to my selections.
All the pages stored in Database.

I am able to set selected value to the next and previous buttons using parent.footerFrame.document.footer.Next.value='"””

By this method I can see the values on screen. I wanted know how to set the selected value to the ASP variable (dim curntPage = “”) in my footerFrame from different page.

parent.footerFrame.document curntPage.value ='"”” is not working so please help.

If I able to stroe the selected page value in my variable then I can make increase or decrease for next and previous values depending up the selected page. (I am not using Static array in ASP the values are coming form Database)

Some please help me on this

jhardman's Avatar
Moderator
 
Join Date: Jan 2007
Location: logan, utah
Posts: 2,690
#2: Sep 8 '09

re: Seeting the value of ASP variable from other page


if you want to store that in a variable that any of your frames can access, use a session variable (session("curntPage") = "page1.asp")

Let me know if this helps.

Jared
Newbie
 
Join Date: Sep 2009
Location: India
Posts: 9
#3: Sep 9 '09

re: Seeting the value of ASP variable from other page


hay thanks for your reply...

actually i am using session only for storing.

<a href ="<%=mylink1 %>" target="contentFrame" onclick="javascript:window.location.reload()" ><% Response.Write("Next")%> </a>


where mylink1 is variable holding the current page loaded in contentFrame. but it needs to refresh and hold new page value when it loads in contentFrame.

actually i have 3 frame. left frame will be the index frame and has tree structure of index and right frame is content frame so depending on the page selected in index frame contents will be loaded...

the bottom frame has next and previous buttons. i need to store current loaded page of content frame in session and use that in next buttons..


<a href ="<%=mylink1 %>" target="contentFrame" onclick="javascript:window.location.reload()" ><% Response.Write("Next")%> </a>

but after the next button click the session page value will not be reassigned to the new loaded page..

can you please help in this regard as to where exactly i need to give page refresh or page reload or any other logic.
Reply