No Css and Theme with URL Routing

3 posts, 0 answers
  1. L
    L avatar
    295 posts
    Member since:
    Apr 2008

    Posted 01 Feb 2012 Link to this post

    hi

    I have a  radmenu with default skin.

    When i set URL routing in Global.asax to

    routes.MapPageRoute(

    "login", "{*username}", "~/login.aspx")
    it losses all its CSS and theme.

    But when i set it to  

    routes.MapPageRoute("login", "login/{*username}", "~/login.aspx")
    it display normal with all its CSS and theme.

    Why it isn't working for the first routing? thanks

     

  2. L
    L avatar
    295 posts
    Member since:
    Apr 2008

    Posted 01 Feb 2012 Link to this post

    this are the detail errors

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SearchToolbar 1.2; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; AskTbARS/5.12.2.16749)
    Timestamp: Thu, 2 Feb 2012 03:18:10 UTC

    Message: Syntax error
    Line: 3
    Char: 1
    Code: 0
    URI: http://localhost/website1/WebResource.axd?d=_arseFA2YvjcluGwTWmgk9rs1hH-BRie9W1A_7lqRTub1sI_51jn3KAYjjZbC8sgwdYrXOwnvA8A7ccfTuTxi9580zkG4VfK_Ncbtu1Ab1Y1&t=634519563474586701

    Message: Syntax error
    Line: 3
    Char: 1
    Code: 0
    URI: http://localhost/website1/ScriptResource.axd?d=e9_qYENnhJi5GohgtAkhs81EOsKdN73EykKZ3D-ifdoHyJl_DeQZqQUkl7lW3SCb5W3rBsG-wgpvxJ9-wHjSlLZZ3xi9MA9aM4YD5_c5PjbUVnpOnb-HxG2ZPp2GMeQitbWflascAlXMDXWsLWkGNAgJRMa9TJQFoCvHmwPdYgI1&t=ffffffff98488cdd

    Message: Syntax error
    Line: 3
    Char: 1
    Code: 0
    URI: http://localhost/website1/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ae71d0a15-7471-4384-9905-78bdf2047cba%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2011.1.519.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a911e11b9-43a3-4153-a0e1-a8dd325e7573%3a16e4e7cd%3af7645509%3a24ee1bba%3ae330518b%3a1e771326%3ac8618e41%3a11e117d7

    Message: ASP.NET Ajax client-side framework failed to load.
    Line: 69
    Char: 34
    Code: 0
    URI: http://localhost/website1/Marks

    Message: 'Sys' is undefined
    Line: 83
    Char: 1
    Code: 0
    URI: http://localhost/website1/Marks

    Message: 'Sys' is undefined
    Line: 244
    Char: 9
    Code: 0
    URI: http://localhost/website1/Marks

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 07 Feb 2012 Link to this post

    Hi L,

    Regarding your question related to setting the URL routing in Global.asax I would suggest that you take a look at the following  articles that provide good examples how to use the MapPageRoute() method:
    • http://msdn.microsoft.com/en-us/library/cc668177.aspx
    • http://msdn.microsoft.com/en-us/library/dd992955.aspx
    • http://stephenwalther.com/blog/archive/2009/02/06/chapter-2-understanding-routing.aspx

    Considering your second post where you get this error it is due to the fact that your site does not get ajaxified correctly. Take a look at the below help articles and posts that will help you fix it:
    • http://www.telerik.com/help/aspnet-ajax/introduction-troubleshooting.html
    • http://forums.asp.net/t/1207960.aspx

    Kind regards,
    Kate
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top