Razor: how to fill a text box?

I feel stupid asking this question, but I'm completely empty here :)

In my controller, I have: ViewBag.TextareaHTML = " test "

How do I, in my opinion, fill in my ... ... with this ViewBag.TextareaHTML value?

+4
source share
1 answer

@ Html.TextArea ("name", (string) ViewBag.TextareaHtml)

+11
source

Source: https://habr.com/ru/post/1337911/


All Articles