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 7813803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:59:08+00:00 2026-06-02T04:59:08+00:00

I am looking at MVC3 razor examples and seeing html.editorfor being utilized and also

  • 0

I am looking at MVC3 razor examples and seeing html.editorfor being utilized and also asked about a lot on this forum. Why can’t i use html.textboxfor and passwordfor? Thanks

  • 1 1 Answer
  • 0 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-06-02T04:59:08+00:00Added an answer on June 2, 2026 at 4:59 am

    EditorFor has the advantage that it will try to render an editor associated to the data type.

    For example: If you design your own Editor Templates they will automatically be rendered based upon the property’s type or UIHint

    A useful editor template might be one that generates a date picker when the property’s type is a DateTime.

    There are some other scenarios as well where the ‘smart’ EditorFor will generate the ‘best’ editor for the property such an example is when it renders a <textarea> when tagging the property with MultilineText

    Using TextBoxFor and PasswordFor are perfectly fine for those cases where you don’t require ‘a special editor’. It might even simplify your life when having to set HtmlAttributes.

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

Sidebar

Related Questions

looking for a large file upload solution on MVC3. There's a few examples in
I'm working on an MVC3 web application using the razor view engine. I'm looking
I am sorry if this has been asked already, but I have been looking
I am looking at using the Telerik MVC3 Razor grid control for a project.
I'm confused about this one. I'm using razor with MVC 3 and I have
Looking around the web, I've seen this simple pattern that implements a (thread-safe) singleton
I am starting to learn jQuery. Looking though the MVC3 project that makes use
I'm looking at a class handling database access for an MVC3/.Net application. The class
I have published an ASP.NET MVC3 site. It runs great. However, looking back at
.NET/MVC3 newbie, so please bear with me! I've searched for this answer all over

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.