http module

Posted by Jayashrik under ASP.NET on 10/23/2009 | Views : 1599 | Status : [Member] | Replies : 2
How to restrict to go through the module if request is from certain type of file.
also how to set value to an object to clean the query string




Responses

Posted by: Vuyiswamb on: 10/28/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Look at this

http://cephas.net/blog/2003/09/25/aspnet-httpmodule-security-example/


http://www.netfxharmonics.com/2007/08/Real-World-HttpModule-Examples.aspx


Thank you for posting at Dotnetfunda

Vuyiswa Maseko


Thank you for posting at Dotnetfunda
[Administrator]

Jayashrik, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jayashrik on: 10/28/2009 [Member] Starter

Up
0
Down
Thanks Vuyiswamb for your post but my requirement is different.

My first issue is whenever i am giving any user friendly URL having some folder like structure which actually does not exist as virtual path, my css,js,image files are not getting loaded. I went through debugging the code and found out its concatenating the URL to the physical path. For example if i am giving http://domainname/jayashri/ where as i do not have any jayashri folder as such but i want to redirect to a aspx page which i have set it through http module. The mapped page is getting loaded but not the css,js and images. Please help me.

My second issue is I have a asp.net application where i have certain common class. Now in order to clean up the query string, i want want to set the query string values to my member variable of my class and then call the same URL again through my http module using rewritepath so that my query string will not be visible to user.

Jayashrik, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response