URL rewrite issue not loading .css

后端 未结 2 762
迷失自我
迷失自我 2021-01-23 10:58

I\'m porting an old site to a new template and am having problems with the Windows 2008 rewrite module. The link I\'m trying to rewrite looks like this:

<
2条回答
  •  忘掉有多难
    2021-01-23 11:47

    Maybe you need one thing, maybe both, I didn't test, but this solved it for me:

    1.) ADD THIS in page_load :

    Page.Header.DataBind() ' Needed because we have <%# %> codeblocks in the HEADER (seems header only causing this) WITH the AjaxControlToolkit running on the page. That's what broke it until we put in this and put in the pound instead of = sign in the html.

    2.) Add this in ASPX:

    <%@ MasterType VirtualPath="~/dir1/dir2whateverdir/MasterPage.master" %>

提交回复
热议问题