Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

A very simple issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
K Viltersten - 19 Apr 2008 21:02 GMT
I'm running Vista Business, no SP yet and
i'm trying to create a simple example of
how to apply ASP to a webpage.

The document is very short - containing
the following lines of code.

<html><head></head><body>
<%response.write("Hello World!")%>
</body></html>

However, as i try to click the file, it
opens in the browser but no text is
displayed. What could i be doing wrong?

--
Regards
Konrad Viltersten
--------------------------------
sleep    - a substitute for coffee for the poor
ambition - lack of sense to be lazy
Cowboy (Gregory A. Beamer) - 19 Apr 2008 21:10 GMT
The norm is not to click on these types of files, but request them through a
web server. This is true both of ASP and ASP.NET. I imagine you could set it
to spin up INternet Explorer, etc., when you click on the file, but it is
not the normal behavior.

Signature

Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************

| Think outside the box!

*************************************************
> I'm running Vista Business, no SP yet and
> i'm trying to create a simple example of
[quoted text clipped - 17 lines]
> sleep    - a substitute for coffee for the poor
> ambition - lack of sense to be lazy
Peter Bromberg [C# MVP] - 19 Apr 2008 22:14 GMT
There is no Response object in a classic asp page when you click on the file
in windows explorer. You need to request the page via HTTP, e.g.
"http://localhost/myIISappname/mypage.asp"
Does that help?
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short Urls & more: http://ittyurl.net

> I'm running Vista Business, no SP yet and
> i'm trying to create a simple example of
[quoted text clipped - 17 lines]
> sleep    - a substitute for coffee for the poor
> ambition - lack of sense to be lazy
K Viltersten - 20 Apr 2008 12:54 GMT
> There is no Response object in a classic asp page when
> you click on the file in windows explorer. You need to
> request the page via HTTP, e.g.
> "http://localhost/myIISappname/mypage.asp"
> Does that help?

Yes, it does. However, it doesn't solve my problem.   :)

I'm currently without access to a server where i could
put the document and then request it.

Perhaps it could be an idea to install a server locally
on my laptop. What do you think?

--
Regards
Konrad Viltersten
--------------------------------
sleep    - a substitute for coffee for the poor
ambition - lack of sense to be lazy
Peter Bromberg [C# MVP] - 21 Apr 2008 01:33 GMT
You must have a webserver installed and running on the local machine for
development if you want to be able to request a page in the normal way it
would be requested in production - via HTTP. If it is classic ASP, you have
no choice but to install and setup IIS which comes with windows Xp and
windows Vista ( most versions).
-- Peter
To be a success, arm yourself with the tools you need and learn how to use
them.

Site: http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://ittyurl.net

> > There is no Response object in a classic asp page when
> > you click on the file in windows explorer. You need to
[quoted text clipped - 16 lines]
> sleep    - a substitute for coffee for the poor
> ambition - lack of sense to be lazy
K Viltersten - 21 Apr 2008 05:10 GMT
> If it is classic ASP, you have no choice but to install and
> setup IIS which comes with windows Xp and windows
> Vista ( most versions).

So, having VS.NET 2008 Express doesn't cover that? I was
sort of expecting that installing it would be sufficient.

Also, IIS is supposed to come with Vista. Will i still have to
install it separately? I thought it was already there on my
system and ready to go...

--
Regards
Konrad Viltersten
--------------------------------
sleep    - a substitute for coffee for the poor
ambition - lack of sense to be lazy
K Viltersten - 21 Apr 2008 05:21 GMT
> You must have a webserver installed and running on the local machine for
> development if you want to be able to request a page in the normal way it
> would be requested in production - via HTTP. If it is classic ASP, you
> have
> no choice but to install and setup IIS which comes with windows Xp and
> windows Vista ( most versions).

I've found the IIS options and activated them. Now i get what
you ment by "coming with Vista" but needed to "be installed".

Still, the other question remains - do i need to install a
separate webserver or is it included in Vista Business as
well and only needing activation?

Thanks for the help, by the way!

--
Regards
Konrad Viltersten
--------------------------------
sleep    - a substitute for coffee for the poor
ambition - lack of sense to be lazy

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.