Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: MVC
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 Smile | :)
Posted 13-Mar-13 5:28am
Edited 13-Mar-13 5:30am
v2
Comments
ThePhantomUpvoter at 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 at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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[^]
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 5,130
1 DamithSL 4,237
2 Maciej Los 3,700
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,846


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 13 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100