• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 266
  • Last Modified:

Format Bass classes for TextBoxFor Field

Is there a way to modify the default attributes of the TextBoxFor fields?

Rather than add a class to each TextBoxFor field would it not be easier to modify the base class?
0
elmbrook
Asked:
elmbrook
  • 2
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
I am not sure to fully understand but you can always inherit the TextBox to create your own and then use your new one instead of the original one.
0
 
elmbrookAuthor Commented:
Can you give me an example of this or at least point me in the right direction?
0
 
Éric MoreauSenior .Net ConsultantCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now