문제

I am lookng for LabelFor extension method source code in MVC 3 Project. Can someone tell me where is it ?

도움이 되었습니까?

해결책

I do not think you will find this source code.

Here is an interesting blog post that explains how you can create your own LabelFor extension, accepting an additional parameter. This may yield some insight into how LabelFor works. ASP.NET MVC LabelFor Helper With HtmlAttributes

The default helpers are very extensible. If your objective is to change the way the data is rendered, you may want to look into creating Templated Helpers. Which allow your dramatic control over how your model is rendered.

다른 팁

The source code for MVC 3 has not been released yet.

However the source for this extension method is in the LabelExtensions.cs file.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top