Link to home
Start Free TrialLog in
Avatar of pdidow
pdidow

asked on

Request is not available in this context [querystring]

I have a page, ModelProfileImages.aspx which passes modelid to an iframe            

<IFRAME src="thumb.aspx?page=1&modelid=" <%= Request.QueryString("modelid") %>
style="WIDTH: 537px; HEIGHT: 150px">width="700"
                                                                                    height="310" scrolling="auto" frameborder="0"> [Your user agent does not
                                                                                    support frames or is currently configured not to display frames. However, you
                                                                                    may visit <A href="foo.html">the related document.</A>] </IFRAME>



thumb.aspx
-----------------
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="thumb.aspx.vb" Inherits="Pantiesism.thumb" enableSessionState=true%>
<%@ Import Namespace="System.IO" %>
<%@Import Namespace="System.Drawing.Imaging" %>
<HTML>
      <!--
-->
      <script language="vb" runat="server">



dim modelid=Request.QueryString("modelid")
 Dim PathVar as String = Server.MapPath(".") + "\ModelImages\" + modelid  + "\Images\"      
 

      </script>



and i get the error Request is not available in this context. None of the code is in the codebehind on the thumbs page. What am i doing wrong?!?!
ASKER CERTIFIED SOLUTION
Avatar of ryerras
ryerras

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial