mohaammed talha

mohaammed talha

  • 1.8k
  • 228
  • 4.4k

How to pass Variable Value in @Html.TextBoxFor using asp.net Mvc

Jun 11 2021 9:51 AM

How to pass Variable value in @html.textboxfor using asp.net mvc 

Below in the query:

@{
    var SbTotal =5;
}
@Html.TextBoxFor(item => item.Total, new { id = "materialCostInput" + SbTotal })
@(OutOfhund + OutOfhundBeh + OutOfhundFun)


Answers (6)