[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • 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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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