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!
Sachin SinghPosted Feb 20, 2021, 3:22 PM
Guest UserPosted Feb 20, 2021, 3:17 PM
Guest UserPosted Feb 20, 2021, 3:14 PM
Satya KarkiPosted Feb 16, 2021, 3:57 PM
Rijwan AnsariPosted Feb 16, 2021, 1:18 PM
Sachin SinghPosted Feb 16, 2021, 1:06 PM
Guest UserPosted Feb 16, 2021, 1:02 PM
Sachin SinghPosted Feb 15, 2021, 5:36 PM
Guest UserPosted Feb 15, 2021, 3:23 PM
Sachin SinghPosted Feb 15, 2021, 2:04 PM
Guest UserPosted Feb 15, 2021, 11:49 AM
Kiran MohantyPosted Feb 15, 2021, 11:21 AM