Solved

Format Bass classes for TextBoxFor Field

Posted on 2014-01-08
3
246 Views
Last Modified: 2014-01-09
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
Comment
Question by:elmbrook
  • 2
3 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 39766943
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
 

Author Comment

by:elmbrook
ID: 39767044
Can you give me an example of this or at least point me in the right direction?
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 39767604
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question