Html.DevExpress()。HtmlEditor - 如何传递给控制器​​的动作?

时间:2011-10-08 16:17:36

标签: asp.net-mvc-3 razor

嗨,我有一个像这样的htmleditor:

@{
ViewBag.Title = "Home Page";
}
@Html.DevExpress().HtmlEditor(
settings =>
{
settings.Name = "heFeatures";
settings.CallbackRouteValues = new { Controller = "HtmlEditor", Action = "FeaturesPartial" };
settings.SettingsImageUpload.UploadCallbackRouteVa lues = new { Controller = "HtmlEditor", Action = "FeaturesImageUpload" };
settings.SettingsImageSelector.Enabled = true;
settings.SettingsImageSelector.EditingSettings.All owCreate = true;
settings.SettingsImageSelector.EditingSettings.All owDelete = true;
settings.SettingsImageSelector.EditingSettings.All owMove = true;
settings.SettingsImageSelector.EditingSettings.All owRename = true;
settings.SettingsImageSelector.UploadSettings.Enab led = true;
}).GetHtml()
<input type="submit" value="Create" />

如何在htmleditor数据中发送到控制器的方法。我需要这个htmlcontent保存到我的数据库...我在asp.net web表单中执行此操作:代码隐藏中的editor1.content但我不知道如何在Razor中执行此操作...

1 个答案:

答案 0 :(得分:1)

这里有一些示例可能有用:

http://community.devexpress.com/forums/p/98704/337740.aspx