Skip to content
Loading
  • +1
    @Sachin Singh 
    I want To Insert variable value in textboxfor 
    +1
  • +1
    I Tried This Query but not Working
    @{
    var SbTotal = OutOfhund + OutOfhundBeh + OutOfhundFun;
    }
    @Html.DisplayFor(item=>SbTotal)
    @Html.TextBoxFor(item => item.Total, new { @value = SbTotal, @readonly = "readonly" })
    +1
  • Satya Karki
    +1

    Hi

     

    Simply try this

    C#
    @Html.TextBoxFor(item => item.Total, new { @Value =SbTotal })
    +1
  • Rajeev Kumar
    0

    Try this -

    @Html.TextBoxFor(item => item.Totel, new { @Value =SbTotal })   

    0