开发者

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


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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜