IgnoreUrlExtensions
I have added a new setting in the web.config - IgnoreUrlExtensions - which allows certain file types to bypass the layout engine. For instance web services do not need a layout - in fact the engine messes a web service up.
Extensions are specified by extension excluding the dot and are seperated by a pipe (|).
E.g.
<setting name="IgnoreUrlExtensions" value="asmx|png|gif|jpg" />
The settings is handled in the HttpRequest pipeline after the site (database, domain etc.) has been setup - this means that you can still access the correct database, even though the filetype is ignored. This is a major difference from IgnoreUrlPrefix.
Extensions are specified by extension excluding the dot and are seperated by a pipe (|).
E.g.
<setting name="IgnoreUrlExtensions" value="asmx|png|gif|jpg" />
The settings is handled in the HttpRequest pipeline after the site (database, domain etc.) has been setup - this means that you can still access the correct database, even though the filetype is ignored. This is a major difference from IgnoreUrlPrefix.
1 Comments:
Hi,
Thanks for this article you have posted it long back i just came across this today .I read previous articles also. very neat and clean presentation every one can read and understand your articles.
Thank you.
By oracleR12, at 4:29 AM
Post a Comment
<< Home