TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
albert albert
NA
524
0
saving decimal number
Jun 8 2012 4:31 AM
Hi everyone,
I have this as Model:
[code]
[Required]
public Decimal MondayHours { get; set; }
[/code]
and this in the view:
[code]
<div class="editor-label">
@Html.Label("Maandag")
</div>
<div class="editor-field">
@string.Format("{00:###:#}", Model.Monday)
@Html.TextBox("Monday", Model.Monday.ToString(), new{@readonly = "readonly" })
@Html.ValidationMessageFor(model=> model.Monday)
</div>
</td>
[/code]
but I put for example an number: 7.5 that the number will be saved as:75,00. and not as: 7,5.
THX for helping!!
Reply
Answers (
10
)
TinyMCE Control without rendering (MVC)
How to select an Entity class name from combobox and use it as a variable in a linq to Entities Query ?