Question

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

Was it helpful?

Solution

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.

OTHER TIPS

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

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top