Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Formatting TextboxFor content

Tags:

c#

asp.net-mvc

I have this :

@Html.TextBoxFor(m => m.MyClass.MyValue, new { style = "width: 138px", id = "mTextBox", maxlength = 10 })

I'd like format the content. Where can I do this ?

Thanks,

like image 897
Kris-I Avatar asked Dec 06 '22 22:12

Kris-I


1 Answers

This worked for me..

@Html.TextBoxFor(model => model.INVOICE_DATE,"{0:MM/dd/yyyy}", new { maxlength = 10, style = "min-height:30px; min-height: 30px;  border-color: green; " })
like image 139
user5636696 Avatar answered Dec 23 '22 13:12

user5636696