开发者

How to get Html helper code

After many attemps to get Html.ActionLink<> and Html.Image() methods from different assemblies without any success could you help find the source of these meth开发者_开发技巧ods so that I can use them in my Web app ?

Thanks


The ASP.NET MVC source code is available at codeplex.

The Html Helper methods are located in the HtmlHelper class, in the namespace System.Web.Mvc.

Or, you can open the System.Web.Mvc DLL using Reflector, and view the source for the HtmlHelper methods there.


Maybe post some code? Are you sure you're using MVC? Are you trying in your View? Are you doing something like the following?:

<%=Html.TextBox("myTextBox")%>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜