K
Keef
Hiya...
just wondering if anyone else has come across this problem, and if there is
a solution...
i'm writing a reasonably simple IHttpModule to rewrite URLs ...
in the BeginRequest event i do a app.Context.RewritePath("~/"+theFile,false)
to the aspx file to display the content, then in the
PreRequestHandlerExecute i do another RewritePath so that all the relative
links (css, images, postabcks, ajax etc..) find thier correct locations...
this works fine, as long as the aspx page is not inside a master page...
when the aspx page uses a master page, the RewritePath only fixes the
relative links contained in the master page and all the relative paths in
the content page don't change!!
is this a bug? or am i missing something?
any help is much appreciated..
thanks k
just wondering if anyone else has come across this problem, and if there is
a solution...
i'm writing a reasonably simple IHttpModule to rewrite URLs ...
in the BeginRequest event i do a app.Context.RewritePath("~/"+theFile,false)
to the aspx file to display the content, then in the
PreRequestHandlerExecute i do another RewritePath so that all the relative
links (css, images, postabcks, ajax etc..) find thier correct locations...
this works fine, as long as the aspx page is not inside a master page...
when the aspx page uses a master page, the RewritePath only fixes the
relative links contained in the master page and all the relative paths in
the content page don't change!!
is this a bug? or am i missing something?
any help is much appreciated..
thanks k