locked
Problem in Razor Subtraction RRS feed

  • Question

  • User-118859203 posted

    I faced unhandled loop in subtraction

    @MvcHtmlString.Create(test.Intro).ToHtmlString().Substring(0, 50).

    Anyone knows how I can get this substring ? Thanks for your help!

    Thursday, January 10, 2019 3:10 AM

Answers

  • User-552477072 posted

    You can simply subtract by 

    @MvcHtmlString.Create(test.Intro.Substring(0, 50))

    Please don't forget to mark as answer if it helps you! Thanks

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 10, 2019 4:26 AM