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

Using QueryStrings to control frames help

Status
Not open for further replies.

M4TT5T3R

Programmer
Apr 19, 2001
11
US
Ok, I'm trying to control a two-framed page using two different Request.QueryStrings... Here's my page:

Code:
<%

 rsFrame (&quot;ForumID&quot;) = Request.QueryString(&quot;ForumID&quot;)
 rsFrame (&quot;MessageID&quot;) = Request.QueryString(&quot;MessageID&quot;)
 
 IF Request.QueryString(&quot;ForumID&quot;) = &quot;&quot; THEN
  rsFrame (&quot;ForumID&quot;) = &quot;1&quot;
 END IF
 IF Request.QueryString(&quot;MessageID&quot;) = &quot;&quot; THEN
  rsFrame (&quot;MessageID&quot;) = &quot;0&quot;
 END IF
 
%>

<HTML>

<frameset rows=&quot;50%,*&quot; NORESIZE border=&quot;1&quot; frameBorder=&quot;1&quot; frameSpacing=&quot;0&quot;>
 <frame src=&quot;/mattfest/forum/forum.asp?ForumID=<%=ForumID%>&quot; name=&quot;topics&quot; target=&quot;bottom&quot; NORESIZE>
 <frame src=&quot;/mattfest/forum/message.asp?MessageID=<%=MessageID%>&quot; name=&quot;bottom&quot; NORESIZE marginHeight=&quot;2&quot; marginWidth=&quot;2&quot;>
</frameset>

</HTML>

can someone tell me what i'm doing wrong? I keep getting the &quot;500 Error&quot; thing... Thanks (if you need to see the specific error, the page is at
 
what is rsFrame (&quot;MessageID&quot;) ?

is it a recordset? but I see you are using <%=MessageID%> as a variable.

Try to change
rsFrame (&quot;ForumID&quot;) = Request.QueryString(&quot;ForumID&quot;)
rsFrame (&quot;MessageID&quot;) = Request.QueryString(&quot;MessageID&quot;)
to:
Dim ForumID, MessageID
ForumID = Request.QueryString(&quot;ForumID&quot;)
MessageID = Request.QueryString(&quot;MessageID&quot;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top