Question: Response.write (squiggly line)

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Question: Response.write (squiggly line)

    I can use response.write in any one of my webforms. But when I try to use it
    in a Module's public sub there is a squiggly blue line under response.
    Hovering over it says 'Name response is not declared.' Do I have to import
    something?

    Any ideas?

    Thanks in advance.


    VB Programmer Guest

  2. Similar Questions and Discussions

    1. response.write URL
      I have a page which lists conferences and events which the company for which I coded the site attends or hosts themselves. They want to be able to...
    2. If response.write help
      Hi, I am trying to code my asp page so that if you are on page Y, the link to page Y in the nav, is in the over state to help users identify where...
    3. quotes in response.write
      Hi there, I want to do: response.write("bla bla bla "in quotes" bla bla") How do I show the quotes on the screen in asp like I have to do \"...
    4. Response.Write and Response.Redirect
      On my Page_Load event, i need to do some validation and then either let them proceed, or display a error message and boot them back to the previous...
    5. Question: How to get more info on tooltip error/squiggly
      Thanks. When I get an error like this, where can I go to get more info/read about the error? I need to be able to 'look it up'. "Steve C. Orr,...
  3. #2

    Default Re: Question: Response.write (squiggly line)

    You simply need to refer to the current context.
    You can do this by specifying the full namespace like this:

    System.Web.HttpContext.Current.Response.Write("... ")

    --
    I hope this helps,
    Steve C. Orr, MCSD
    [url]http://Steve.Orr.net[/url]


    "VB Programmer" <growNO-SPAM@go-intech.com> wrote in message
    news:eMI$ZTAQDHA.560@TK2MSFTNGP10.phx.gbl...
    > I can use response.write in any one of my webforms. But when I try to use
    it
    > in a Module's public sub there is a squiggly blue line under response.
    > Hovering over it says 'Name response is not declared.' Do I have to import
    > something?
    >
    > Any ideas?
    >
    > Thanks in advance.
    >
    >

    Steve C. Orr, MCSD Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139