{"id":25885,"date":"2020-12-21T02:42:17","date_gmt":"2020-12-20T18:42:17","guid":{"rendered":"https:\/\/web.mwwsb.com.my\/pjci\/?post_type=kb&#038;p=25885"},"modified":"2022-09-08T21:38:49","modified_gmt":"2022-09-08T13:38:49","slug":"how-can-i-run-asp-net-web-page","status":"publish","type":"kb","link":"https:\/\/www.casbay.com\/guide\/kb\/how-can-i-run-asp-net-web-page","title":{"rendered":"How can I run ASP.NET web page?"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"25885\" class=\"elementor elementor-25885\" data-elementor-post-type=\"kb\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7c08e3c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7c08e3c\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-244d61b\" data-id=\"244d61b\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d94493f elementor-widget elementor-widget-heading\" data-id=\"d94493f\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">How can I run ASP.NET web page. <\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1b2f577 elementor-widget elementor-widget-text-editor\" data-id=\"1b2f577\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Please be informed that .Net Framework is already installed inside your server. However, you need to activate your\u00a0<a href=\"https:\/\/asp.net\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\" data-wpel-link=\"external\">asp.net<\/a>\u00a0at IIS for each domain.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c772763 elementor-widget elementor-widget-text-editor\" data-id=\"c772763\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Step <strong>1<\/strong> of 6<br \/>Firstly, Go to IIS.<\/p><p>Step <strong>2<\/strong> of 6<br \/>Secondly, Right-hand click your domain name (<a href=\"http:\/\/hostelmania.com\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\" data-wpel-link=\"external\">hostelmania.com<\/a>) and select Properties.<\/p><p>Step <strong>3<\/strong> of 6<br \/>Thirdly, Select Home Directory Tab and click on Configuration.<\/p><p>Step <strong>4<\/strong> of 6<br \/>Next, Under Mappings, click on the Add button.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9767495 elementor-widget elementor-widget-text-editor\" data-id=\"9767495\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ul><li>Executable file: C:WINNTMicrosoft.NETFrameworkv1.1.4322aspnet_isapi.dll<\/li><li>Extension: aspx<\/li><li>Limit to: GET,HEAD,POST,DEBUG<\/li><\/ul>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3619cd3 elementor-widget elementor-widget-text-editor\" data-id=\"3619cd3\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Step <strong>5<\/strong> of 6<br \/>Then, try to add extensions vb, cs, asac, configure<\/p><p>Step <strong>6<\/strong> of 6<br \/>Lastly, you may refer to the configuration<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-31b7fa1 elementor-widget elementor-widget-heading\" data-id=\"31b7fa1\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-medium\">Difference between ASP.NET Web Forms & ASP.NET Web Pages<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2ad2401 elementor-widget elementor-widget-text-editor\" data-id=\"2ad2401\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>There are three flavors of <strong>ASP.NET Full<\/strong> and there is also <strong>ASP.NET Core<\/strong> (the new one that works on Linux and Mac).<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8166f7a elementor-widget elementor-widget-heading\" data-id=\"8166f7a\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">For ASP.NET Full<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-90dbdb3 elementor-widget elementor-widget-heading\" data-id=\"90dbdb3\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-medium\">1) Web Forms<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8234d00 elementor-widget elementor-widget-text-editor\" data-id=\"8234d00\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>The first one is the oldest and is called <strong>Web Forms<\/strong>. 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.<\/p><p>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.<\/p><p>Click to View <a href=\"http:\/\/www.asp.net\/web-forms\" rel=\"noopener\">Source.<\/a><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7fe55f8 elementor-widget elementor-widget-heading\" data-id=\"7fe55f8\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-medium\">2) MVC<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1edebaf elementor-widget elementor-widget-text-editor\" data-id=\"1edebaf\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>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.<\/p><p>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 &#8211; 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.<\/p><p>Click to View <a href=\"https:\/\/dotnet.microsoft.com\/apps\/aspnet\/mvc\" rel=\"noopener\">Source<\/a>.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-dea5e8b elementor-widget elementor-widget-heading\" data-id=\"dea5e8b\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-medium\">3) Web Pages<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-af3be9f elementor-widget elementor-widget-text-editor\" data-id=\"af3be9f\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>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 &#8220;Basic PHP style&#8221;. It uses the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Microsoft_ASP.NET_Razor_view_engine\" rel=\"nofollow noreferrer noopener\">Razor<\/a>\u00a0syntax for injecting the serverside code.<\/p><p>Click to View <a href=\"http:\/\/www.asp.net\/web-pages\" rel=\"noopener\">Source<\/a>.\u00a0<\/p><p>Note that Web Forms uses pages (unlike MVC). Therefore, there is confusion about what ASP.NET Web Pages are.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5e1dc35 elementor-widget elementor-widget-heading\" data-id=\"5e1dc35\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">ASP.NET Core<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cce0c58 elementor-widget elementor-widget-text-editor\" data-id=\"cce0c58\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>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 <a href=\"https:\/\/docs.microsoft.com\/en-us\/aspnet\/core\/razor-pages\/?view=aspnetcore-3.1\" rel=\"nofollow noreferrer noopener\">Razor Pages<\/a>\u00a0which is essentially a more advanced version of ASP.NET Web Pages.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>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\u00a0asp.net\u00a0at 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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"page-builder","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"kbtopic":[60],"kbtag":[106],"mkb_version":[],"_links":{"self":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/25885"}],"collection":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/comments?post=25885"}],"version-history":[{"count":1,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/25885\/revisions"}],"predecessor-version":[{"id":36609,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/25885\/revisions\/36609"}],"wp:attachment":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/media?parent=25885"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=25885"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kbtag?post=25885"},{"taxonomy":"mkb_version","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/mkb_version?post=25885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}