My asp.net application is not using formsauthentication. Instead we make a call to database, check username//password and save the value in session if user is logged in.
Now i need to secure my html files. I put IIS7 in integrated mode and added a handler mapping to a statichtmlhandler that i wrote that basically checks that if the request url contains .html and session("userloggedin") is not null then do nothing else redirect to login page.
This works fine. Only problem is my html files show up as blank. How to fix it?