473,320 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Seeting the value of ASP variable from other page

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
Sep 4 '09 #1
2 2468
jhardman
3,406 Expert 2GB
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
Sep 8 '09 #2
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.
Sep 9 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Lionel Andre | last post by:
Hi, I have a drop-down box for which I need to show 100 px when it's rolled up. When the user expands it I want to display the whole string (variable elngths, could be, sy up to 400 characters)...
15
by: lawrence | last post by:
Sorry for the dumb question but I'm new to Javascript. I wrote this script hoping to animate some div blocks on a page. You can see the page here: http://www.keymedia.biz/demo.htm Can anyone...
8
by: hb | last post by:
Hi, I need to declare a variable who's value can be preserve through the same ASP.Net page. I tried the following code, only the static variable s2 keeps its value=22 after lnk1_Click followed...
2
by: timonjue | last post by:
I want to acess a string value from one of my asp pages and write it in all other pages. am new in asp leave alone asp.net how would i do that in asp help
9
by: Lammert | last post by:
Good morning, I create an ASP.NET 2.0 web application. The situation: 1. One masterpage where the users can select an organisation in a DropDownList. 2. Different content pages. I will get...
2
by: shil | last post by:
Hi all, I am using javascript confirm() function to get user's confirmation from codebehind after a condition is met. I don't want to attach the function to the button on page load. When I...
10
by: Brad Baker | last post by:
I have an asp.net/csharp application that requires a particular variable to work properly. This variable is usually passed via a query string in the URL when the application is first run but under...
0
by: zman77 | last post by:
EDIT: -- forgot to mention... I am using Visual Studio 2005, on Win XP, on an intel machine Hi. This is my first post, though I've "lurked" for a while because I find these forums very helpful....
0
by: tharika_c | last post by:
Hi, We have a simple ASP.NET web application where one of the Session variables, called Session("SSO_ID") gets created and assigned a value (equal to the HTTP_HRID request variable value),...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.