HI! I am still having problems, I use what you mentioned but It does not
accept the Iframe values that I give it.
<iframe src="<% IF Request.QueryString("ifp") <>"" Then %>
<%=Request.QueryString("ifp")%>
<% Else %>
<% ifp= "Template_Code_Files/All_featured_template_for_iframe.htm" %>
<% End IF %>">
name="Iframe001" width="750px" height="920px" scrolling="yes"
id="Iframe001">If you are reading this then your browser cannot view
Iframe, Please upgrade you borwser.</iframe>
The height and width and other params are not being used by the browser.
and it does not load the file that I specified either. Is there something
else missing here?
I tried it as writen above and on a single line.
NOTICE: If I just use the code below it works ( but it does not have a
default value at this point )
<iframe src="<%=Request.QueryString("ifp")%>" name="Iframe001"
width="750px" height="920px" scrolling="yes" id="Iframe001">If you are
reading this then your browser cannot view Iframe, Please upgrade you
borwser. </iframe>
I use this from another page.
<a
href="mainpage.asp?ifp=Template_Code_Files/All_featured_template_for_iframe.htm">Click</a>
To use a default value should I define it as a session variable?
Is it possible to define the session var in the global.asa
Paul
Stefan B Rusynko said:
<iframe src="
<% IF Request.QueryString("ifp") <>"" Then %>
<%=Request.QueryString("ifp")%>
<% Else %>
<% ifp= "whatever" %>
<% End IF %>">
</iframe>
Where "whatever" can be as session variable or constant
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________
| HI! I use iframes and I need to set a default value so if the user
enters
| the page directly he does not get an empty iframe.
|
| I use this to query the var ( ifp )
|
| <iframe src="<%=Request.QueryString("ifp")%>"></iframe>
|
| Now should I set a session var so that the if the user enters the site
he
| will get whatever I set at the beginning of the users session?
| OR
| should I set an IF statement on the Iframe page.?
|
| <SCRIPT language="JavaScript">
| If (ifp==""){
| ifp="default.htm"}
| //--></SCRIPT>
|
|
| --
| Thanks in advance
|
| Paul
|
|