Html编辑器无法运行asp.net 4.0。 [英] Html editor not work asp.net 4.0.

查看:70
本文介绍了Html编辑器无法运行asp.net 4.0。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好......



i有一项任务,我必须为此代码添加html编辑器。

< br $>


Hello...

i have one task in that i have to add html editor for that i code like this.


<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:HtmlEditorExtender ID="HtmlEditorExtender1" runat="server" TargetControlID="TextBox1">
        </asp:HtmlEditorExtender>





工作正常。



现在我添加一些网址路由代码在Global.asax中这样..





it's work fine.

now i add some url routing code in "Global.asax" like this..

void Application_Start(object sender, EventArgs e) 
    {
        // Code that runs on application startup

        RegisterRoutes(System.Web.Routing.RouteTable.Routes);


    }
    public static void RegisterRoutes(System.Web.Routing.RouteCollection routes)
    {
        routes.MapPageRoute("",
            "{Name}",
            "~/Membersite.aspx");
    }





并且当时运行应用程序我的html编辑器不显示只有简单的文本框(id = TextBox1)是显示。

任何帮助都对我有好处...



and than run application at that time my html editor is not display only simple textbox (id=TextBox1) is display.
any help is please it good for me...

推荐答案

我忘了添加这一行...



i forgot to add this line...

public static void RegisterRoutes(System.Web.Routing.RouteCollection routes)
{
    routes.Ignore("{resource}.axd/{*pathInfo}");//add this line 

    routes.MapPageRoute("",
        "{Name}",
        "~/Membersite.aspx");
}



告诉路由API不要使用axd扩展名(由scriptmanager生成的文件)路由文件


Tell the routing API to not route the files with "axd" extension (the files generated by the scriptmanager)


这篇关于Html编辑器无法运行asp.net 4.0。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆