Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Experts,

I have added an HTTPModule to process certain things before loading the ASP.NET page.

If the processing fails I redirect to a custom error page.
The problem I am having is that the error page when loaded directly without the HTTPmodule implemented, loads fine with applying all the CSS from the attached style file.

But when the page get redirected from the HTTPModule handler then the css is not applied to the page.

Am I doing something wrong?

Thanks for your help in advance!
Posted
Updated 12-Jan-11 1:16am
v3
Comments
Dalek Dave 12-Jan-11 5:05am    
Edited for Readability.

This is a known issue.

You will probably find that the RadControls embedded resources (CSS and JS files) have failed to load.

I think session state is only available when .aspx page is requested.
Try using HttpContext.Current.Session
 
Share this answer
 
Thank you Dalek Dave for the answer.
Correct me if I am wrong. Are you suggesting to have the page name stored in a session variable in HTTP module and have that available in a temp page and from the temp page redirect to page stored in the variable?
 
Share this answer
 
Hello Dalek Dave
I am not able to redirect to any page from the http module redirected page.
Can't I customize my error page with CSS,JS when redirected from HTTP module?
 
Share this answer
 
Have you taken a look at this article:
User Friendly ASP.NET Exception Handling[^]

Regards
Espen Harlinn
 
Share this answer
 

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