Why does my html helper extension work if I do:
<%= Html.MyExt() %>
all mvc helpers work like:
<% Html.TextBox(""); %>
My extension builds a StringBuilder, then returns a string.
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.
This helper must return string (ASP.NET MVC 1.0) or MvcHtmlString (ASP.NET MVC 2.0) which is written to the response stream (using
Response.Write):This helper returns nothing (void) it simply executes the extension method: