Hi,
I want to set Routing Ignore Requests For Js /css files in in Global.aspx in Asp.net.
In my web page there is some wrong script files there , In this page take a too much time to load.I i remove that scripts files page working fine but some functionality i have implemented refer to scripts. can any one help me.
Routing in Asp.net Problem
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Raj BandiRank #1,603 · 981 reputationPosted Jul 25, 2013, 3:48 PM EDT
My question, why do you need routing for this? if you want to ignore some scripts for a particular page, why dont you use master page with placeholders?
Even if you are using routing(say for example ASP.Net with IIS URL Rewrite) How the server knows that this web page and these scripts are to be ignored.
The best way is to place all your optional scripts in a place holder say placeholder1 in master page. Add a empty content tag with placeholder placeholder1 in the web page for which these scripts are to be ignored.
Hope this helps,
Cheers,
Raj
Raj4 reputationPosted Aug 2, 2013, 3:28 AM EDT
ignore function solve your problem.
I handle img same way. I find one of useful link here http://blogfornet.com/2013/05/image-path-problem-with-routing-in-website.