Ask a Question related to ASP, Design and Development.
-
Aaron Bertrand - MVP #1
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
-
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... -
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")... -
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... -
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) &... -
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... -
Laura #2
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
-
SPA #3
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
-
Dave Anderson #4
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
-
Laura #5
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
-
Aaron Bertrand - MVP #6
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
-
Laura #7
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
-
Dave Anderson #8
Re: asp response.write doesn't display
"Laura" wrote:
You *DO* view them the same way -- as sent from the web server. It's a good>
> I'm new to asp programming, but I thought you could
> just view them the same way you view html files...
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



Reply With Quote

