Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello...

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


C#
<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>


it's work fine.

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

C#
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");
    }


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...
Posted

1 solution

i forgot to add this line...

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

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

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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900