ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Length/Width of an Awe.TextBoxFor control
Title:
B
I
{code}
?
Hello, I'm quite new to Awesome MVC controls. I'm looking how to set the length of text textbox in an Awe().Textbox. It seems all the textboxes have the same size. Is there a class to specify? Thanks ahead.
Save Changes
Cancel
guehmann
asked at 14 Feb 2015
Answers
B
I
{code}
?
if by length you mean width, than you can do that by setting a class @Html.Awe().TextBox("txt1").CssClass("mytxt") and have this css style .mytxt { width:300px; } there's also maxlength, which is how many characters you can enter in the textbox, you set it using .MaxLength(int)
Save Changes
Cancel
Omu
answered at 14 Feb 2015
Thanks for the fast reply. This will help me.
at 14 Feb 2015
guehmann
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK