Click here to Skip to main content
15,901,906 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends, I'm new to MVC. Can you tell me:

1. Why html helper class is needed?
2. Javascript/Jquery do not provide the same functionality as html helper class provide?
3. Advantage of using html helper class?

Can anyone provide the tutorial link for the same?

Thanks in advance :)
Posted
Updated 13-Mar-13 4:30am
v2
Comments
[no name] 13-Mar-13 10:31am    
A google search for "html helper tutorial" produced over 1 million results. You did not get a single one?
dhage.prashant01 14-Mar-13 1:16am    
I tried but did not get ans for my all question.
I was looking for expertise suggestion and i got it below and hope this post helps other new developers like me to learn more.
Cheers :)

1 solution

1) You don't need them, they help you to output proper html code. As they are managed code level objects, you have intellisense support, strong types and lambda expressions. The main goal: not to write as less html code directly as possible.
2) No, they serve totally different purposes, and while the helpers run on server side, javascript is running on client side.
3) They help you to write your application in a consistent, sustainable, maintainable fashion, and also faster.

Read these:
http://stephenwalther.com/archive/2009/03/03/chapter-6-understanding-html-helpers.aspx[^]
http://www.asp.net/mvc/tutorials/older-versions/views/creating-custom-html-helpers-cs[^]
 
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