Request is not available in this context [querystring]

Posted on 2004-11-21
Last Modified: 2008-01-09
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>

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

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


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?!?!
Question by:pdidow
    1 Comment
    LVL 6

    Accepted Solution

    use Context.Request.QuertString("modelid")

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
    In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now