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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing form data to frames 1

Status
Not open for further replies.

Niv3k

Programmer
Jul 11, 2001
350
US
I was wondering if anyone had a better idea to pass variables to all the frames on a page, other than this little ASP that draws my frameset:
Code:
Dim sParams

sParams = "?"
If Request(&quot;A&quot;) <> &quot;&quot; Then _
   sParams = sParams & &quot;A=&quot; & _
   Request(&quot;A&quot;) & &quot;&&quot;
If Request(&quot;B&quot;) <> &quot;&quot; Then _
   sParams = sParams & &quot;B=&quot; & _
   Request(&quot;B&quot;) & &quot;&&quot;
sParams = Left(sParams, Len(sParams) - 1)

]/code]Then this:[code]

<frameset rows=&quot;50,*&quot;> 
   <frame src=&quot;Page1.htm<% = sParams %>&quot;>
   <frame src=&quot;Page2.htm<% = sParams %>&quot;>
</frameset>

This works good, but the problem is I have to remember to put an IF statement for every variable I pass. I'm hoping there is an easier way.

Kevin
 
U could use
sParams=Request.ServerVariables(&quot;QUERY_STRING&quot;) ________

George
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top