Click here to Skip to main content
15,843,498 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I just add one httpModule ([^]) 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

1 solution

if you need to detect page refresh event check below alternatives
How to Detect Page Refresh in C# VB.Net[^]
Detecting Refresh or Postback in ASP.NET[^]
Share this answer
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