Click here to Skip to main content
Rate this: bad
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
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
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:[^][^]

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

  Print Answers RSS
0 Maciej Los 495
1 Sergey Alexandrovich Kryukov 469
2 OriginalGriff 360
3 Sascha Lefévre 255
4 Abhinav S 250
0 Sergey Alexandrovich Kryukov 10,102
1 OriginalGriff 9,495
2 Peter Leow 5,241
3 Kornfeld Eliyahu Peter 3,373
4 Maciej Los 3,076

Advertise | Privacy | Mobile
Web03 | 2.8.150327.1 | Last Updated 13 Mar 2013
Copyright © CodeProject, 1999-2015
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