Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

frames problem

Posted on 1998-11-11
4
Medium Priority
?
191 Views
Last Modified: 2013-12-25
hi,
i have four asp's.i have a value in 1.asp.this value is posted to 2.asp,but i want that same value in 4.asp
my code is as follows

1.asp

<html>
<body>
<form action = 2.asp method =post>
<%dim var
var = 5%>
</form>
</body>
</html>
***************************
2.asp

<html>
<%dim var1%>
<% var1 = Request("var")%>
<frameset>
<frame name =frame1 src=3.asp>
<frame name =frame2 src=4.asp>
</frameset>
</html>
**
i want the value in 2.asp in 4.asp,the problem i think is due to frame creation ,is there any solution to this problem.if so reply with code.thanx.







0
Comment
Question by:rvsamuel
  • 2
  • 2
4 Comments
 
LVL 28

Accepted Solution

by:
sybe earned 150 total points
ID: 1856294
Pass the variable in a querystring to 4.asp

2.asp

<html>
<%dim var1%>
<% var1 = Request("var")%>
<frameset>
<frame name =frame1 src=3.asp>
<frame name =frame2 src=4.asp?var=<%var1%>>
</frameset>
</html>

0
 

Author Comment

by:rvsamuel
ID: 1856295
Sybe,
thanx for the response.the problem still persists.I have a doubt.
<frame name =frame2 src=4.asp?var=<%var1%>> ,are u using the same variable used in 1.asp(though it is local)?The second is how do i retrieve it in my 4.asp,still i cannot retrieve it.I used
var2 = Request.Querystring(var)
Response.Write var2
Is this right?or where am i wrong

0
 
LVL 28

Expert Comment

by:sybe
ID: 1856296


sorry type:

<frame name =frame2 src=4.asp?var=<%=var1%>>
0
 

Author Comment

by:rvsamuel
ID: 1856297
thanx my problem is solved
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Suggested Courses

927 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