ASP.NET MVC Custom View Helpers
Code
Plex
Open Source Community
Register
|
Sign In
|
CodePlex Home
Home
Downloads
Documentation
Discussions
Issue Tracker
Source Code
People
License
Close
RSS
All Project Updates
Discussions
Issue Tracker
Releases
Reviews
Source Code
Wiki & Documentation
RSS
By clicking Delete, all history, comments and attachments for this page will be deleted and cannot be restored.
View All Comments
|
Print View
|
Page Info
|
Change History (all pages)
Home
ASP.NET MVC Custom View Helpers
With ASP.NET MVC there are some extension methods on the
HtmlHelper
object (
I'm calling these View Helpers
) which help developers to create their views. For example if someone needs to create a text input field inside of their view they can use a statement like
<%= Html.TextBox("FirstName") %>
. This article describes why developers might want to create their own methods similar to this and exactly how to do it.
Along with the article there is a fully functional, but very simple contact manager application, which demonstrates the difference of views created with and without the custom view helpers.
You can download the 22 page article as well as sources at
http://mvcviewhelpers.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=35567
.
There is now a
Chinese
version of the article available at
http://mvcviewhelpers.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=35567#DownloadId=100366
. Translation provided by
CareySon
.
Written by
Sayed Ibrahim Hashimi
Last edited
Jan 8 2010 at 12:57 PM
by
sayed_hashimi
, version 7
2 people
are following this project (
follow
)
Download
Microsoft Public License (Ms-PL) This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software. 1. Definitions The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law. A "contribution" is the original software, or any additions or changes to the software. A "contributor" is any person that distributes its contribution under this license. "Licensed patents" are a contributor's patent claims that read directly on its contribution. 2. Grant of Rights (A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create. (B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software. 3. Conditions and Limitations (A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks. (B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically. (C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software. (D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license. (E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.
To install this application, save it and then open it. Opening it directly from Opera will not work correctly.
Current
Article and Source
Date
Sat Nov 7 2009 at 8:00 AM
Status
Stable
Rating
1 rating
2060 downloads
More
View all downloads
Recent reviews
(
more
)
the document is fabulous..it inside out the entire theory as well as demo for us to lea... (
more
)
Ads by Lake Quincy Media
Join Us
Developer
Sign in
to join this project.
Complete this form to send a request to become a member of this project. Enter any comments that you wish for the project coordinators to see when approving your request, for example what role you would like to have in the project.
250
characters left
Activity
7
7
30
30
All
All
days
Page Views
49
Visits
18
Downloads
12
Application Runs
N/A
View Detailed Stats
Updating...
© 2006-2012 Microsoft
|
Get Help
|
Privacy Statement
|
Terms of Use
|
Code of Conduct
|
Advertise With Us
|
Version 2012.1.11.18365