Solved

passing values between frames

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Save ms data to server side. 19 43
Connection to multiple databases 13 19
ASP server side get value 15 22
innerHTML 7 16
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…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

772 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