473,789 Members | 2,431 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Seeting the value of ASP variable from other page

9 New Member
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.footerFr ame.document.fo oter.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.footerFr ame.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 2489
jhardman
3,406 Recognized Expert Specialist
if you want to store that in a variable that any of your frames can access, use a session variable (session("curnt Page") = "page1.asp" )

Let me know if this helps.

Jared
Sep 8 '09 #2
deepunarayan
9 New Member
hay thanks for your reply...

actually i am using session only for storing.

<a href ="<%=mylink1 %>" target="content Frame" onclick="javasc ript:window.loc ation.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="content Frame" onclick="javasc ript:window.loc ation.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
4442
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) I did the following and it works perfectly in NS7.x I need this to work in IE6... <select name="soldto" style="width: 100px;">
15
3250
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 tell me why these DIVs don't drift to the left as they are supposed to? <script language="javascript">
8
9206
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 by lnk2_Click(). The others return to their original values initiated during their declaration. But the static variable's life doesn't end when the page is closed and it causes
2
1164
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
3416
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 the value of the DropDownList in the Page_PreInit event. How can I do that? The content in the content and master pages is based on
2
2922
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 submit the page, I want to check some business rules, and based on the response from the database, if the response is Yes, I need to display a confirmation alert to user. When the user clicks ok, then I should take an action, if not, exit out of the...
10
2521
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 certain circumstances the query string may not contain the variable. So I need some way of establishing a default value if one isn't set. Is there some way I can set a query string on page_load OR is there some way I can use a global variable...
0
2049
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. Ok my problem is the following. I have a class that contains a "MakeByteArray" function. I have many objects of that class. Inside that function, I have a private variable, that is NOT static. It seems that when I put all these objects in...
0
2291
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), inside the Session_Start event of the global.asax.vb file, since this variable is accessed by almost all the pages in the project. Besides this variable, there are other session variables which are set in the various aspx pages, as needed.
0
9663
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9506
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10404
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
7525
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6761
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5415
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4089
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3695
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2906
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.