Plans | Login    

Briefing Search
Keyword:
Category:

       

    
Author Details
Shirley Patague

Developing Web App in Asp.net? Do Remember these 5 things


Many developers opt for ASP.NET MVC for their new web applications. But this might not be always possible and you may need to use Web Forms for your new projects.

BriefingWire.com, 7/28/2016 - Many developers opt for ASP.NET MVC for their new web applications. But this might not be always possible and you may need to use Web Forms for your new projects. That needs to be followed certain guidelines while developing a Web Forms project then at later stage migrating to MVC would be less painful comparatively.

Here we have listed 10 key points to follow:

1. Use Class libraries

The evolution of .NET framework over the years depicts that Class Libraries are best for coding that is independent of any particular type of UI. More the code is isolated in class libraries, it would be possible in reusing them during and after the migration which would be quite simple.

2. Use jQuery Ajax over Web Forms specific techniques

Web Forms aid AJAX Extensions to help develop Ajax-enabled applications. Though these controls are specific to Web Forms,instead of relying on them you may think of using standard Ajax techniques such as jQuery $ .ajax() or XMLHttpRequest object. Thus Ajax code will be quite portable to any other web development framework including MVC.

3. Make habit of using Web API

Though Web API was introduced along with MVC , now it’s a part of ASP.NET framework and Web API can be used in Web Forms applications too, since Web API controllers will be 100% reusable in MVC applications.

4. Prefer to skip server control level UI properties

ASP.NET Web Forms make UI development quite easy. Just drag-n-drop controls set their properties and the UI is ready. One common mistake most developer does is to set UI related properties of the server controls. These properties are transformed into style attribute of the respective control tag. A suggested approach is to place all such information in CSS style sheets and then use Class Name property of the server controls to attach a CSS class.

5. Prefer to skip Web Forms specific features

Web Forms use several features that are Web Forms specific, which are not available in MVC. So avoid such features for new projects because it will create difficulty during migration to MVC projects.

Stay dropping to this page of CRB Tech reviews for more technical up-gradation and other resources.

 
 
FAQs | Contact Us | Terms & Conditions | Privacy Policy
© 2026 Proserve Technology, Inc.