Click here to Skip to main content
15,887,349 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I just add one httpModule (http://msdn.microsoft.com/en-us/library/ms379557%28VS.80%29.aspx[^]) to check or determine if the page is being refreshed.But after that, all the css file & js file can not be loaded.'Failed to load resource: the server responded with a status of 500 (Internal Server Error)' come out.

And I debug on this issue, I found all links of css& js file called public void Init(HttpApplication app) method in HttpModule.

I don't know why, anyone can help on this?

thanks in advance
Posted

1 solution

if you need to detect page refresh event check below alternatives
How to Detect Page Refresh in Asp.net C# VB.Net[^]
Detecting Refresh or Postback in ASP.NET[^]
 
Share this answer
 
Comments
chenghuichao 15-Dec-14 20:35pm    
thanks guys, I solved this issue by add the follow code in httpmodule:
if (HttpContext.Current.Request.CurrentExecutionFilePathExtension.ToLower() == ".aspx")
{
//...
}

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900