|
-
Apr 1st, 2002, 07:52 AM
#1
Thread Starter
Addicted Member
iFrame & Variables
In an ASP script that I am developing, I have the following HTML being implemented (outside ASP tags)
Code:
<iframe width="542" id="idContent" height="350"></iframe>
and I also have a variable in ASP called 'strContent'.
My problem is that I want the contents of this variable to be displayed inside the iFrame when it loads
(similar to the 'value' object in text input types).
Does anyone have any ideas how I can do this because I've tried using VALUE, SRC and simply putting it betting the opening and closing tags to no avail.
Thanks,
Adam
-
Apr 1st, 2002, 10:54 AM
#2
Fanatic Member
iFrames are very complicated, I will read my documentation on what you are trying to do.. as I have done that before.
-
Apr 1st, 2002, 11:05 AM
#3
Thread Starter
Addicted Member
-
Apr 2nd, 2002, 04:08 AM
#4
PowerPoster
hi
I guess this shd work:
Code:
<html>
'
'
'
'
<iframe height=200 width=200 src="myfile.asp?p=123"></iframe>
'you can subs. 123 with any value using asp.
'the rest of the page
'then in myfile.asp
just use it normally...
myvar = request.querystring("p")
hope this helps...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|