Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 356
  • Last Modified:

passing values between frames

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
ajaypappan
Asked:
ajaypappan
  • 2
  • 2
1 Solution
 
John_LennonCommented:
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
 
ajaypappanAuthor Commented:
I know both ways and they don't work in frames..
0
 
John_LennonCommented:
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
 
ajaypappanAuthor Commented:
i was doing something wrong with session variable...it works now..
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now