Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

passing values between frames

Posted on 2006-06-27
4
Medium Priority
?
355 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 500 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

618 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