Solved

Iframe and SRC

Posted on 2001-08-02
7
635 Views
Last Modified: 2010-05-18
Hi

I have an iframe on a main page which will load a different page depending on who logged on. Which is where I assign the below session variable

<Iframe src="<% Session("subform") %>" .......</iframe>

But it doesn't seem to pick it up

Thanks

0
Comment
Question by:tim_ferris
[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
  • 3
  • 3
7 Comments
 
LVL 33

Expert Comment

by:hongjun
ID: 6344029
Try this
<Iframe src='<%=Session("subform")%>' .......</iframe>

hongjun
0
 
LVL 2

Expert Comment

by:DirkVe
ID: 6344045
If the above doesn't work, this means your session variable is empty or not a valid url
0
 
LVL 2

Author Comment

by:tim_ferris
ID: 6344049
No, it doesn't do anything. It just loads a blank iframe
0
Independent Software Vendors: 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!

 
LVL 33

Expert Comment

by:hongjun
ID: 6344058
Try doing this to see its value. Rest assured that the my iframe coding is correct. The only problem now is the Session("subform") may be empty.


<%
Response.Write Session("subform")
%>

hongjun
0
 
LVL 2

Author Comment

by:tim_ferris
ID: 6344064
Even if I set my session variable on the page that loads....

Session("subform") = "subentertainment.asp"

<html>
<iframe src="<% Session("subform")%>" <iframe>
</html>

If i write the variable to the page it comes up, so its not empty
0
 
LVL 33

Accepted Solution

by:
hongjun earned 50 total points
ID: 6344074
tim_ferris, use my iframe coding. I repeat again.

<Iframe src='<%=Session("subform")%>'></iframe>


hongjun
0
 
LVL 2

Author Comment

by:tim_ferris
ID: 6344094
Hongjun

Sorry I had actually written my code up before, you added your comment.

It works.....good skills

Thanks

Tim
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

617 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