Solved

passing values between frames

Posted on 2006-06-27
4
342 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
  • 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now