Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,

I am a new ASP.NET developer. I have some clarifications about the best practices that shall be followed in web development.

I understand, the choice between ASP.NET server controls or mere HTML/jQuery based controls is based on the time duration of the task in hand. But, I have a confusion on which would be the best one to choose in terms of maintainability, effective usage of bandwidth, interactivity and all. ASP.NET does generate scripts for which many of the things will run at client side itself. But, will it results in heavy overheads?

Example:

If I want to develop an interactive website which supposed to get the required data from database and manipulate it before showing to the user:
1. Having a WEB API that shall be doing the data fetch process and data manipulation and return the data in JSON form to the webpage (which calls the Web API). In the website, the presentation logic will be there in HTML5 and Javascript (and other javascript libraries).
2. Fetching the data by using EntityFramework/LINQ to SQL in the website's data access layer and have the presentation logic in ASP.NET webforms.

Which of the two above approach will be a better one to opt.

Thank you in advance.
Prasanna
Posted
Comments
CoderPanda 12-Apr-14 15:58pm    
They both are good and valid approaches. Which one is better depends on what else you want to achieve.
Rahul VB 13-Apr-14 15:40pm    
Exactly...
[no name] 24-Apr-15 11:57am    
Agree with the two other comments above - it all depends what you're developing and how it will be used.

From a beginners point of view, I'd suggest learning option (2) first and then moving onto option (1) once you're comfortable.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900