首页 新闻 会员 周边

关于MVC3 Rozor引擎里面添加xheditor在线编辑器

0
悬赏园豆:10 [已关闭问题] 关闭于 2011-05-19 12:07
<script type="text/javascript">
$(document).ready(
function () {
$(
".xheditor1").xheditor(true, { tools: 'simple',
upLinkUrl:
"../Link", upLinkExt: "zip,rar,txt",
upImgUrl:
"../Upload", upImgExt: "jpg,jpeg,gif,png",
upFlashUrl:
"../Upload", upFlashExt: "swf",
upMediaUrl:
"../Upload", upMediaExt: "avi"
});
});
</script>
@Html.TextAreaFor(a => a.Content, new { @class = "xheditor1", rows = "8"})
后台
public ActionResult Add(Aboutus ab)
{
if (Loginstate == 0)
{
return RedirectToAction("Index", "AdminLayout"); }
if (ab != null)
{
if (ModelState.IsValid)
{
ResultMessage res
= abll.AddAboutus(ab);
ViewBag.Mes
= (int)res;
}
else
ViewBag.Mes
= -1;//状态不对
}
else
ViewBag.Mes
= -2;//数据错误
return View();
}
后台的content列得不到数据  其他的都行  为什么呢
JCdon的主页 JCdon | 初学一级 | 园豆:2
提问于:2011-05-18 17:28
< >
分享
所有回答(1)
1

关注!

我更想不通,和你代码一样,但我显示的只是一个输入框,所有的tool都看不到,这是为啥?

日暮乡关何处是 | 园豆:84 (初学一级) | 2011-10-30 22:28
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册