Print Page | Close Window

Changing iframe info

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=10489
Printed Date: 31 March 2026 at 5:51pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Changing iframe info
Posted By: Brolin99
Subject: Changing iframe info
Date Posted: 17 May 2004 at 9:33pm

Hey all,

I have an app that uses an iFrame to edit content, and has a number of different templates. What I want to be able to do is select which template I can use at any time (i.e. a set of radio buttons or so forth). I tried it using a form with the processing being:

<%
If request.form "template" = "template1" then
strTemplate = "template1.htm"
Else
strTemplate = "template.htm"

If request.from "template" = "template2" then
strTemplate = "template2.htm"
Else
strTemplate = "template.htm"

End If
End If
%>

Any ideas??




Replies:
Posted By: dpyers
Date Posted: 17 May 2004 at 11:50pm

Try something like...

Quote
Select Case request.form("template")
    Case "template1"
           strTemplate = "template1.htm"
    Case "template2"
           strTemplate = "template2.htm"
    Case Else
           strTemplate = "template.htm"
End Select



-------------

Lead me not into temptation... I know the short cut, follow me.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net