asp response.write doesn't display

Ask a Question related to ASP, Design and Development.

  1. #1

    Default Re: asp response.write doesn't display

    Maybe you could start with a more barebones file, especially one without an
    unclosed LINK tag:
    > <LINK REL="stylesheet" TYPE="text/css" HREF="H:\TCRPstyle.css"
    > <!-- Insert Header Title: --> Upcoming Conferences

    Aaron Bertrand - MVP 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. Response.Write doesn't work
      And why doesn't my swedish characters (هنِ) show up in the email correctly? <% Namn = Request.form("namn") Adress = Request.form("adress")...
    3. 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...
    4. Syntax for response.write
      "Cory" <cory@agency-online.com> wrote in message news:%23PWPW9mUDHA.1512@TK2MSFTNGP11.phx.gbl... Try: <% name="Joe" response.write chr(34) &...
    5. 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...
  3. #2

    Default Re: asp response.write doesn't display

    thanks, I didn't notice that the link tag wasn't closed, but even
    though, closing it and/or removing the lines didn't seem to help the
    asp. This is wierd, isn't it? Maybe it's not my script but some
    settings I need to change?

    thanks again, laura



    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Laura Guest

  4. #3

    Default Re: asp response.write doesn't display

    Hi

    Please include a "</HEAD> tag before the <BODY> tag to ensure the HEAD
    section is closed.

    It would be better to try the following code first:

    <%@ LANGUAGE = "VBSCRIPT" %>
    <% OPTION EXPLICIT
    Response.Buffer = True
    Response.Expires =30 %>

    <HTML>
    <HEAD>
    <TITLE>Upcoming Conferences</TITLE>
    </HEAD>
    <body>
    <% Response.Write "Hello" %>
    </body>
    </html>

    SPA

    "Laura" <salamahl@aecl.ca> wrote in message
    news:3b666b7a.0307081126.7c4b42ad@posting.google.c om...
    > Hello, this is a newbie question but i'm just trying to get my asp
    > page to display "hello world" and this is just not working.
    >
    > The bit of code is below (I've removed everthing else), but basically,
    > the text won't display on the screen. Is there something I need to
    > set to make this work? Is it not supposed to work? I don't know.
    >
    > Any help is appreciated, this is very frustrating.
    >
    > Laura
    >
    > <%@ LANGUAGE = "VBSCRIPT" %>
    > <% OPTION EXPLICIT
    > Response.Expires =30 %>
    > <HTML>
    > <HEAD>
    > <META HTTP-EQUIV="Content-Type" CONTENT="text/html;
    > CHARSET=windows-1252">
    > <TITLE>Upcoming Conferences</TITLE>
    > <LINK REL="stylesheet" TYPE="text/css" HREF="H:\TCRPstyle.css"
    > <!-- Insert Header Title: --> Upcoming Conferences
    > <!-- #INCLUDE VIRTUAL = "H:\adovbs.inc" -->
    > <body>
    > <% Response.Write("Hello")%>
    > </body>
    > </html>

    SPA Guest

  5. #4

    Default Re: asp response.write doesn't display

    Laura --

    I see a lot of responses suggesting that you fix your HTML, but none of them
    ask the most relevant question -- when you select [View]:[Source], what do
    you see?

    My point (and the one that is implicit in the other responses) is that
    Response.Write does not write to your screen -- it merely adds some text to
    the response stream, which may or may not contain well-formed HTML. If your
    browser doesn't display it, can you be sure it isn't there? The only way to
    tell is to view the source.


    "Laura" wrote:
    >
    > Hello, this is a newbie question but i'm just trying to get my asp
    > page to display "hello world" and this is just not working.
    >
    > The bit of code is below (I've removed everthing else), but basically,
    > the text won't display on the screen. Is there something I need to
    > set to make this work? Is it not supposed to work? I don't know.
    >
    > Any help is appreciated, this is very frustrating.
    >
    > Laura
    >
    > <%@ LANGUAGE = "VBSCRIPT" %>
    > <% OPTION EXPLICIT
    > Response.Expires =30 %>
    > <HTML>
    > <HEAD>
    > <META HTTP-EQUIV="Content-Type" CONTENT="text/html;
    > CHARSET=windows-1252">
    > <TITLE>Upcoming Conferences</TITLE>
    > <LINK REL="stylesheet" TYPE="text/css" HREF="H:\TCRPstyle.css"
    > <!-- Insert Header Title: --> Upcoming Conferences
    > <!-- #INCLUDE VIRTUAL = "H:\adovbs.inc" -->
    > <body>
    > <% Response.Write("Hello")%>
    > </body>
    > </html>
    --
    Dave Anderson

    Unsolicited commercial email will be read at a cost of $500 per message. Use
    of this email address implies consent to these terms. Please do not contact
    me directly or ask me to contact you directly for assistance. If your
    question is worth asking, it's worth posting.


    Dave Anderson Guest

  6. #5

    Default Re: asp response.write doesn't display

    Hello,
    When I view the source, the line containing the asp remains as it does
    in the original code. (response.write("hello")) Does this mean that
    it's not even recognizing that ASP has started, since it's not writing
    to the screen or the response stream?
    thanks again, laura





    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Laura Guest

  7. #6

    Default Re: asp response.write doesn't display

    How are you opening the page? Make sure you are entering
    [url]http://localhost/page.asp[/url] in the browser, and not c:\path\page.asp,
    double-clicking the file, or "previewing" with some WYSIWYG editor...


    "Laura" <lora@start.com> wrote in message
    news:O4FGKyhRDHA.3192@tk2msftngp13.phx.gbl...
    > Hello,
    > When I view the source, the line containing the asp remains as it does
    > in the original code. (response.write("hello")) Does this mean that
    > it's not even recognizing that ASP has started, since it's not writing
    > to the screen or the response stream?
    > thanks again, laura

    Aaron Bertrand - MVP Guest

  8. #7

    Default Re: asp response.write doesn't display

    Ok, now I feel like an idiot.... but THANK YOU! I'm new to asp
    programming, but I thought you could just view them the same way you
    view html files...
    All everyone's help is appreciated.

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Laura Guest

  9. #8

    Default Re: asp response.write doesn't display

    "Laura" wrote:
    >
    > I'm new to asp programming, but I thought you could
    > just view them the same way you view html files...
    You *DO* view them the same way -- as sent from the web server. It's a good
    habit for you to get into.

    When your .html pages contain image addresses relative to the root (such as
    <IMG SRC="/images/logo.gif">), and you just open the file in your web
    browser, what do you see? Broken images, right? I rarely justify simply
    opening even a static page from the file system when there's a server
    sitting there waiting to do the job right.



    --
    Dave Anderson

    Unsolicited commercial email will be read at a cost of $500 per message. Use
    of this email address implies consent to these terms. Please do not contact
    me directly or ask me to contact you directly for assistance. If your
    question is worth asking, it's worth posting.


    Dave Anderson 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