Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6170185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:59:06+00:00 2026-05-23T22:59:06+00:00

Going from ASP.NET 2.0 (VB) to MVC 3 (C#), I’m very confused about the

  • 0

Going from ASP.NET 2.0 (VB) to MVC 3 (C#), I’m very confused about the syntax being used for the View.

@Html.LabelFor(m => m.UserName)

Where did that m come from? My only guess is that it represents the model that is being passed into the view. I tried changing the m to c and it still works fine.

Is the part of the syntax that involves the “=>” more of a MVC, C#, or Razor element?

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:59:07+00:00Added an answer on May 23, 2026 at 10:59 pm

    Where did that m come from?

    It’s the parameter in a lambda expression.

    My only guess is that it represents the model that is being passed into the view. I tried changing the m to c and it still works fine.

    That’s because the name doesn’t matter. It’s just a parameter name, it doesn’t actually refer to any existing variable.

    Is the part of the syntax that involves the “=>” more of a MVC, C#, or Razor element?

    It’s C#, but LabelFor uses what the compiler translates m => m.UserName into to extract what it needs to build up the label.

    This is a very deep an intricate subject. I suggest that you find a book that you’re comfortable with (e.g., C# in Depth is very good on this subject) to understand more. You want to read about lambda expressions and expression trees.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been learning ASP.NET MVC recently and everything is going well apart from
I come from an ASP.NET MVC background and am currently going through the following
I am going to pass an variable from asp.net server to the javascript but
I'd like to print receipts from my asp.net mvc app. For now I think
I am trying to use ExtJS with Asp.Net MVC, and it is going fine
I'm working on an ASP.NET MVC 3 application. I primarily come from a ASP.NET
I'm going over Sanderson's Pro ASP.NET MVC Framework and in Chapter 4 he discusses
I'm going to simplify my route declaration around of my asp.net mvc project. So
I'm migrating an e-commerce app from an old php framework to ASP.NET MVC. Some
I have been trying to learn ASP.NET MVC 3 and things are going well

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.