AnchovyLegend
AnchovyLegend

Reputation: 12538

Testing Server for ASP.NET

I am new to ASP.NET and I would like to start coding and learning the language by building and running different simple pieces of code...

What would be the easiest way to get started and test ASP.NET code? I tried modifying the the httpd file in XAMPP to add asp support, which did not work. I am guessing using XAMPP to run ASP.NET is not the easy way to go about it.

<html>
<body>
     <h1>Hello Web Pages</h1>
     <p>The time is @DateTime.Now</p>
</body>
</html>

I appreciate any advice,

Many thanks in advance!

Upvotes: 1

Views: 1974

Answers (3)

foo-baar
foo-baar

Reputation: 1104

If you are a student then you can download it free from dreamspark.com just that you need to punch in some student id/university information.

Window default have an IIS server you just need to activate it from "Turn window features on off" but yea for hosting you need to have an IIS server.

Author Andy Olsen have nice tutorials/books online dedicated to asp.net, which are one of the best one's available.

I can check and get you the title of some of the best books (in case you want to proceed with that way).

Good Luck.

Upvotes: 0

Earlz
Earlz

Reputation: 63935

I'd look at the official Getting Started page for ASP.Net. You can use Cassini or IIS Express for actually testing your web applications. You'll want to upgrade to the full IIS for putting your web application in production.

Upvotes: 5

Joe Enos
Joe Enos

Reputation: 40431

You definitely want to use IIS - I don't know if you can even use Apache for ASP.NET, but IIS is pretty much designed for it.

A basic hello-world page would need a little tweaking from your sample - once you have an application set up in IIS, this page should run:

Default.aspx:

<%@ Page Language="C#" %>
<html>
    <body>
        <h1>Hello Web Pages</h1>
        <p>The time is <%= System.DateTime.Now %></p>
    </body>
 </html>

But this is not a good way to learn real ASP.NET stuff. You'll want to use Visual Studio for sure to learn, and run some tutorials online to get you started. I personally suggest starting with ASP.NET MVC, especially if you've already got any exposure to the MVC pattern. Classic ASP.NET WebForms have a lot of funky web voodoo, and might be a little tricky to learn if you are a web developer with other technologies.

You can get a free copy of Visual Studio - search for Visual Studio Express, and you'll find various free editions.

Upvotes: 1

Related Questions