编写了一个小巧精美实用的asp.net在线编辑器控件,含源码,带注释((c#,javascirpt,HTML),欢迎来顶!支持asp.net2.0/3.5,IE7或IE8环境,开发使用Vs2008下载地址:http://download.csdn.net/source/542906------有了大家的支持,我的程序人生会更加精彩!-------附图:
编写了一个小巧精美实用的asp.net在线编辑器控件,含源码,带注释((c#,javascirpt,HTML),欢迎来顶!支持asp.net2.0/3.5,IE7或IE8环境,开发使用Vs2008下载地址:http://download.csdn.net/source/542906------有了大家的支持,我的程序人生会更加精彩!-------附图:
服务器应用程序不可用
哦原来是
VS2008的 NET3.5我没办法看看
不错,支持一下楼主,你有没有试过放在 ajax.net测试过,好象javascript会有问题,你测试一下
默认编辑器调用路径是根路径上的 /editor,
如果是其它子路径,可以直接设置一下控件中的url参数,指定编辑器调用地址即可!
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{ if (!IsPostBack)
{
//补充说明:这里是指定编辑器路径的,如果editor目录是直放在根跟径,可以不用设置,注释下面这句即可
//this.txtEditor.Url = "/editor/editor/editor.htm";
this.txtEditor.Text = "ddddddddddddddddddddddddd";
}
else
{
string strTest = this.txtEditor.Text;
} }
}
请问怎么把你这个编辑器 放在我的项目里啊
<AspYanghua:HtmlEditor id="txtEditor" width="700" height="500" text="这是一个测试" path="/upload/images/test/" runat="server" />
报错误
分析器错误消息: 未知的服务器标记“AspYanghua:HtmlEditor”。
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Components;
using System.Data;
using Components.DAL.DataGather.JingXia;namespace Query2.GongChengJS
{
public partial class D4084Query : BasePage
{ protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ViewState["SortOrder"] = "kgrq";
ViewState["OrderDire"] = "desc";
EnsureRenderInFrame = true;
再次向你请教