Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variable to an iFrame page

Status
Not open for further replies.

jon24422531

Technical User
Jan 27, 2004
295
0
0
GB
Hi Guys

I am trying to introduce a variable (sCode) into my iFrame page but I keep getting an error:

Microsoft VBScript compilation error '800a0400'
Expected statement
/WishListDevelopment/DevTestOpen.asp, line 48
(sCode)
^

This works OK:
Code:
<iframe id="datamain" src="DevOpenDetail.asp?id=303" marginwidth="0" .......

But this doesn't, and I've tried all sorts of variations of quotes etc..
Code:
<iframe id="datamain" src="DevOpenDetail.asp?id=<%(sCode)%>" marginwidth="0" .......

Any thoughts on where I am going wrong?

Many thanks

Jonathan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top