Click here to Skip to main content
15,914,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hey
I am learning MVC . so tell me to get better performance what type of control should i use .
i.e. sever control or html control
like textbox, button,radio button etc.

Thanyou
Posted
Updated 9-Jan-14 19:29pm
v2

If you are using ASP.NET Webform server control in MVC there is no point of reason using ASP.NET MVC. In ASP.NET MVC please use the normal html controls. The Advantage of this are you got the full control over html. For grids and some othet extra control you can download free plugins for implementing this. In the case of performance ASP.NET MVC is better than the webform because it is completely stateless or there is no ViewState. Also another advantages are Maintainability,Unittesting etc..
Hope this helps
 
Share this answer
 
v2
Hi,

ASP.NET MVC doesn't support server control so you should go with another option means HTML control but I want to put a suggestion for you that you should use HtmlHelper that provides inbuild HTML control and esay to use. Get a look here of HTML Helper http://www.w3schools.com/aspnet/mvc_htmlhelpers.asp[^]

Thanks,
Sandeep
 
Share this answer
 

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