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
Guest User
Tech Writer
515
46.5k
About MVC view and DataBinding from SQL
Feb 15 2021 10:58 AM
hello,
I have view with textbox and I have given @Value to that textbox as 15 by default. Please refer textbox below :
@Html.TextBoxFor(Model => Model.quantity, new { @id = "txtquantity", @type = "number", @class = "form-control", @Value = "15" })
I am able to save that or any other value in SQL DB.
But when I edit that textbox, it should bind the value which is saved in a database, but still it binds that by default "15" value, even in db the value is saved different.
Anything can be done to make this work?
Thank you in advance!
Reply
Answers (
12
)
The request was aborted: API
Why webservice ,wcf and web api?