How do I build a custom html helper like Html.TextBoxFor()
I would like to create a date-picker helper.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I found these on a search. They appear to be very promising, and are in a clean tutorial-style format.
Edit: I downloaded the sample project from the first tutorial, and added the following to the HtmlHelperExtensions class to get strongly-typed
...For()behavior. The principle is simple: forward strongly typed data binding to the existing plain methods. Note that this has the Works on My Machine seal of approval, and should be carefully reviewed and, if necessary, adapted to your scenario.