Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Razor: How to fill a textarea?

I feel stupid asking this question, but I'm totally blank here :)

In my controller i have this: ViewBag.TextareaHTML = "test"

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

like image 848
MojoDK Avatar asked Dec 17 '22 17:12

MojoDK


1 Answers

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

like image 160
David Glenn Avatar answered Jan 02 '23 04:01

David Glenn