asp.net上 kindeditor上传图片界面无法显示,一直在滚动
代码如下:<%@PageLanguage="C#"AutoEventWireup="true"validateRequest="false"%><scriptrunat=...
代码如下:
<%@ Page Language="C#" AutoEventWireup="true" validateRequest="false" %>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
this.Label1.Text = Request.Form["content"];
}
</script>
<!doctype html>
<html>
<head runat="server">
<meta charset="utf-8" />
<title>KindEditor ASP.NET</title>
<script charset="utf-8" src="../../editor/kindeditor.js" type="text/javascript"></script>
<script type="text/javascript">
KE.show({
id: 'content',
imageUploadJson: '/editor/asp.net/upload_json.ashx',
fileManagerJson: '/editor/asp.net/file_manager_json.ashx',
allowFileManager: true,
afterCreate: function (id) {
KE.event.ctrl(document, 13, function () {
KE.util.setData(id);
document.forms['form1'].submit();
});
KE.event.ctrl(KE.g[id].iframeDoc, 13, function () {
KE.util.setData(id);
document.forms['form1'].submit();
});
}
});
</script>
</head>
<body>
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>
<form id="form1" runat="server">
<textarea runat="server" id="content" cols="100" rows="8" style="width:700px;height:200px;visibility:hidden;" ></textarea>
<br />
<asp:Button ID="Button1" runat="server" Text="提交内容" /> (提交快捷键: Ctrl + Enter)
</form>
</body>
</html> 展开
<%@ Page Language="C#" AutoEventWireup="true" validateRequest="false" %>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
this.Label1.Text = Request.Form["content"];
}
</script>
<!doctype html>
<html>
<head runat="server">
<meta charset="utf-8" />
<title>KindEditor ASP.NET</title>
<script charset="utf-8" src="../../editor/kindeditor.js" type="text/javascript"></script>
<script type="text/javascript">
KE.show({
id: 'content',
imageUploadJson: '/editor/asp.net/upload_json.ashx',
fileManagerJson: '/editor/asp.net/file_manager_json.ashx',
allowFileManager: true,
afterCreate: function (id) {
KE.event.ctrl(document, 13, function () {
KE.util.setData(id);
document.forms['form1'].submit();
});
KE.event.ctrl(KE.g[id].iframeDoc, 13, function () {
KE.util.setData(id);
document.forms['form1'].submit();
});
}
});
</script>
</head>
<body>
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>
<form id="form1" runat="server">
<textarea runat="server" id="content" cols="100" rows="8" style="width:700px;height:200px;visibility:hidden;" ></textarea>
<br />
<asp:Button ID="Button1" runat="server" Text="提交内容" /> (提交快捷键: Ctrl + Enter)
</form>
</body>
</html> 展开
2个回答
展开全部
你应该是没有在程序中添加对LitJson的引用,所以导致upload_json.ashx加载失败。
你只需要添加对LitJson的引用,LitJson.dll在asp.net的bin目录下。
希望对你有用,再见。
你只需要添加对LitJson的引用,LitJson.dll在asp.net的bin目录下。
希望对你有用,再见。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询