Solved

passing values between frames

Posted on 2006-06-27
4
349 Views
Last Modified: 2010-05-18
i have these asp pages
login page - username and password
verify.asp ---> passes username to Welcome page

Welcome pages has 3 frames- one fixed, menu.asp, tickets.asp

menu.asp <---needs username as input

I dnt know hoe to pass the username paramtere to both pages - welcome and menu.asp..Please help
0
Comment
Question by:ajaypappan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 6

Expert Comment

by:John_Lennon
ID: 16993945
you can save the value in a session variable, and the value will be accesible for all the page the user visit in you site

in your verify.asp page you can put
session("Username") = username '<-- put here the value of the username

and then, in any other pages that you need the value of username, you can get it with
username = session("username")

'##############3

another way will be to give the value to menu.asp in the string, like this
in welcome.asp, where you have the src for the frame, put this
src="menu.asp?username=" & username & ""

and in menu.asp you can get the value with
username = request("username")

'#######################

do this helps you?
0
 
LVL 3

Author Comment

by:ajaypappan
ID: 16994043
I know both ways and they don't work in frames..
0
 
LVL 6

Accepted Solution

by:
John_Lennon earned 125 total points
ID: 16994262
they work on frames, and i make a little simple example to prove it to you

file frame.asp
<%
      session("username") = "username_by_session"
%>
<FRAMESET border="1" rows="30%, 30%, 40%">
      <FRAME name="one" src="one.asp">
      <FRAME name="two" src="two.asp?username=<%= "username_by_string"%>">
      <frame name="three" src="three.asp">
</FRAMESET>

file one.asp
<body>
page one<br>
ussing session("username") <br>
<%
      response.write session("Username")
%>
</body>

files two.asp
<body>
page two<br>
using request<br>
<%
      response.write request("Username")
%>
</body>

'#############################

both ways worked, so i suppose what you need it's something diferent
0
 
LVL 3

Author Comment

by:ajaypappan
ID: 16994283
i was doing something wrong with session variable...it works now..
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question