How to save textboxfor value in sql using c#
Query in the below:
View:
@{
var SbTotal = OutOfhund + OutOfhundBeh + OutOfhundFun;
}
@Html.DisplayFor(item => SbTotal)
@Html.TextBoxFor(item => item.Total, new { @Value = SbTotal, @readonly = "readonly" })
@*@(OutOfhund + OutOfhundBeh + OutOfhundFun)*@
Controller:
string query3 = "insert into AssesmentModelDetail(Total=)values('"+item.Total+"')"
Sachin SinghPosted Jun 12, 2021, 8:10 AM
Jignesh KumarPosted Jun 12, 2021, 4:41 AM