Finally... A Replacement for Classic ASP

John Avis by | May 18, 2011 | ASP.NET Web Pages ASP.NET Web Forms

Recently I noticed that on the ASP.NET website there was a new menu option. In addition to "Web Forms" and "MVC", there is now "Web Pages". This leads to information on ASP.NET Web Pages and the new Razor syntax.

After a brief look through the documentation it appears to me that this is he closest we have to a replacement for Classic ASP!

Although it goes against some of the coding best practices established by ASP.NET, such as separating content from code, to me it seems like an excellent way to get back to coding like I used to with Classic ASP -- simple, efficient code with the programmer in control instead of Web Forms.

I have read some opinions on "Web Pages" and I disagree with those who claim that this new development option will only appeal to those looking for a simple way of producing dynamic websites. It appeals to me as I like to have more control over the HTML sent to the client browser and minimise the amount of server traffic (no viewstate data), and am sick of creating repeaters with OnItemDataBound events to do things that were so much simpler in Classic ASP. Surely the simple option is "Web Forms" with drag and drop controls and code-less development.

Microsoft has made available a free tool called WebMatrix as a simple tool for creating web sites, but Visual Web Developer or Visual Studio 2010 is the better choice for professionals. You will need to download the MVC 3 Tools from Microsoft.

I plan to produce some test code and see how well it works out. I see it combining well with JQuery for doing AJAX.

The official website is at http://www.asp.net/web-pages.

There is an excellent 270+ page PDF book available from Microsoft at ASPNETWebPagesWithRazorSyntax-Book.pdf (free download).

Related Posts

Bootstrap ASP.NET Web Forms

ASP.NET Web Forms and Bootstrap 3 Modals

by John Avis | July 6, 2017

There are a few methods for hiding and showing Bootstrap 3.x modals in an ASP.NET Web Forms application. This technique is pure ASP.NET (requires no client script) and allows you to show and hide modals by changing the Visible property of a containing PlaceHolder or Panel.


ASP.NET Web Forms

Disable common UpdateProgress controls for an UpdatePanel with an associated UpdateProgress

by John Avis | April 12, 2017

If you have an ASP.NET Web Forms page with multiple UpdatePanels and multiple UpdateProgress controls, sometimes you may want one or more UpdateProgress controls associated with a specific UpdatePanel, and one or more UpdateProgress controls that have no association with an UpdatePanel so are shown when any UpdatePanel is updated.


Bootstrap ASP.NET Web Forms

Bootstrap checkbox-inline and radio-inline with ASP.NET CheckBoxList and RadioButtonList controls

by John Avis | June 20, 2016

Although you can easily create inline checkboxes and radio buttons using ASP.NET CheckBoxes and RadioButtons using Bootstrap's checkbox-inline and radio-inline classes, it's not so easy with ASP.NET CheckBoxList and RadioButtonList controls.

Comments

There are no comments yet. Be the first to leave a comment!

Leave a Comment
Tags
ASP.NET Html Forms ASP.NET MVC ASP.NET Web Forms ASP.NET Web Pages Bootstrap C# Classic ASP Cool Websites Databases eBay and PayPal Electrical Repairs General Hardware HTML/CSS Jquery/Javascript Media Center Mobile Phones Responsive Web Design SEO and Social Networking Web Design Web Development Web Security web+db Website Hosting Windows XP

About me

...mostly about web development and programming, with a little bit of anything else related to the Internet, computers and technology.

Subscribe

Get the latest posts delivered to your inbox.