开发者

Razor: How to fill a textarea?

开发者 https://www.devze.com 2023-02-08 00:56 出处:网络
I feel stupid asking this question, but I\'m totally blank here :) In my controller i have this: ViewBag.TextareaHTML = \"test\"

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.T开发者_StackOverflow中文版extareaHTML value?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消