Casbay Knowledge Base

Search our articles or browse by category below

How can I run ASP.NET web page?

Last modified: October 1, 2022
Estimated reading time: 2 min

How can I run ASP.NET web page.

Please be informed that .Net Framework is already installed inside your server. However, you need to activate your asp.net at IIS for each domain.

Step 1 of 6
Firstly, Go to IIS.

Step 2 of 6
Secondly, Right-hand click your domain name (hostelmania.com) and select Properties.

Step 3 of 6
Thirdly, Select Home Directory Tab and click on Configuration.

Step 4 of 6
Next, Under Mappings, click on the Add button.

  • Executable file: C:WINNTMicrosoft.NETFrameworkv1.1.4322aspnet_isapi.dll
  • Extension: aspx
  • Limit to: GET,HEAD,POST,DEBUG

Step 5 of 6
Then, try to add extensions vb, cs, asac, configure

Step 6 of 6
Lastly, you may refer to the configuration

Difference between ASP.NET Web Forms & ASP.NET Web Pages

There are three flavors of ASP.NET Full and there is also ASP.NET Core (the new one that works on Linux and Mac).

For ASP.NET Full

1) Web Forms

The first one is the oldest and is called Web Forms. Basically, it is a high-level component-oriented web framework that works with controls. For example, the buttons and grids that encapsulate behavior and view.

It was the most popular flavor of ASP.NET. However, the drawback is the lack of control over the generated markup. Currently, most new projects are ASP.NET MVC, but there is definitely a lot of Web Forms code out there. While this is my personal favorite, I must point out that it is a bad way to start learning web programming. This is because it hides the implementation details from you (which is good when you have experience). So, it is a bit complex to learn.

Click to View Source.

2) MVC

ASP.NET MVC is an implementation of the MVC pattern for ASP.NET. Some people claim that it is easier to develop maintainable applications with unit tests and good separation of concerns with this framework than it is with Web Forms.

I disagree with this point and think that using patterns like MVP one can achieve the same with Web Forms. On the other hand, ASP.NET MVC has one big advantage – it allows full control over the generated markup. This is very important for the modern style of web development where Javascript controls a lot of things. For example, adding a fancy animation is easier to do on top of an MVC view than it is on top of a Web Form.

Click to View Source.

3) Web Pages

ASP.NET Web Pages is (currently) the latest flavor that is targeted at smaller projects and beginner developers (in my opinion). It is good for developing smaller projects with ~ 10 pages. Moreover, most of the logic is written in a single file per page in what I call “Basic PHP style”. It uses the Razor syntax for injecting the serverside code.

Click to View Source

Note that Web Forms uses pages (unlike MVC). Therefore, there is confusion about what ASP.NET Web Pages are.

ASP.NET Core

For ASP.NET Core, a new version of ASP.NET MVC is used that is conceptually the same as the ASP.NET MVC as above. Interestingly, as of ASP.NET Core 2.0, there is also something called Razor Pages which is essentially a more advanced version of ASP.NET Web Pages.

Was this article helpful?
Dislike 0
Previous: CredSSP Encryption Oracle Remediation
Next: Difference Between MySQL and MSSQL Server