Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP or ASP.net more popular??? 3

Status
Not open for further replies.

Maisie2007

Technical User
Apr 12, 2007
42
CA
Ok, another dumb question - which one of these 2 is more widely used?

Thanks!
 
Currently ASP.NET is preferred over ASP for building rich web applications easily. If you are wondering which one to start learning then I would suggest learning ASP.NET.

-DNG
 
which server can I test some pages on for free?
 
which server can I test some pages on for free?

If you install IIS (Internet Information Services), you can test ASP and ASP.net pages on your own computer. You should already have the ability to install IIS through Windows.

To do this, do the following steps:

open control panel -> add/remove programs

In there is an icon "Add/Remove Windows Components", click that.

It'll bring up a popup window. In that popup, you can install IIS from there.




[monkey][snake] <.
 
I think I installed IIS...

I went to test my first page, and typed in the address on my puter where the file is, but nothing popped up except the code on a webpage.

What did I do wrong? Here's the addy I typed in: C:\Documents and Settings\My Documents\hello.aspx

Is this correct, or am I looking to ftp this file somewhere else first?

Thanks,
Maisie
 
It is in the wrong place unless you configured IIS to have a virtual directory in your \My Documents folder.

The default location is C:\Inetpub\
Use the IIS Admin tool from Control Panel to see which folder is your actual web root.

Also there is a completely separate forum here on tek-tips with a focus on ASP.NET --> forum855
 
Yeah when you set up IIS you have to have a root web directory. Any ASP code you try to run has to be ran within that directory.

[monkey][snake] <.
 
Ok, I found it - I will head over to forum855: Microsoft: ASP.NET in the future

I have one more question: I got the file in here: C:\Inetpub\ But when I click on the file, it asks me which program to open it with, and I say notepad, and of course it opens up my original file.
So I'm not seeing the webpage being executed at all...
 
But I did...

I opened a web browser, and pasted in C:\Inetpub\
but all i see is the file there - then when I click on it, it asks me what program I want to open it up with....
what did i do wrong?
 
Many browsers can open up the actual file, which is not what you want.

You want the browser to send an HTTP Request to IIS so that IIS executes your logic and generates some HTML and returns it to the browser as an HTTP Response.

You can almost always refer to your local machine using the reserved TCP/IP address 127.0.0.1

So assuming you have the default web root of C:\Inetpub\ and then under that you have a subfolder named "hello" and in that folder is a file named "hello.asp" then something like this:
 
Thanks for all your help...:)

This is what I got from:
You are not authorized to view this page
You might not have permission to view this directory or page using the credentials you supplied.

and,

This is what I got from:
Page cannot be found.....

Any ideas of what might be wrong?
 
The first message is most likely because directory browsering is disabled by default.

For the second message, take the following steps to see if IIS is responding to HTTP Requests.

1. Open Notepad.exe
2. Paste the following:
Code:
<html>
  <title>Test Page</title>
  <body>
    This is a test page.
  </body>
</html>
3. Save file as C:\Inetpub\4. Point your web browser to
This should display the test page. If not then there is a problem with IIS.

Control Panel -> Administrative Tools -> Internet Information Services
 
Ok, the htm displayed fine.

But the aspx didn't display like it should.

So I can assume that it should display fine as long as my code is good (which I have checked and rechecked).

So I guess I should head over to the asp.net forum to resolve this one, right?
 
Don't you usually have to indicate the version of asp.net to use aspx's.

Click Start -> All Programs -> Administrative Tools -> Internet Information Services

Drill down to 'default web site'
Right Click -> Properties
ASP.Net tab
Select the 'ASP.NET version'

I'm a little out of my comfort zone here, but give this a try and see if it helps.

-George

"the screen with the little boxes in the window." - Moron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top