mohaammed talha

mohaammed talha

  • NA
  • 445
  • 51.3k

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 (7)