Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: ocean10000
I have to put together a solution to protect the static files along with the dynamic content, based on login restrictions.
Any help would be appreciated.
Try providing access to the files through a protected or private subroutine using an ASP.NET user control.
What you need to do is create a user control by putting together a separate ASP.NET file with a .ASCX extension. You will need to register it in your .ASPX file with a directive of the following:
<%@ Register TagPrefix="control" TagName="tag" Src="basic.ascx" %>
Then, create file handing visual basic in a private subroutine:
private sub OpenFile
Your File Handing Code...
In your ASPX file that registers your control, use
<control:tag runat="server" />
Read up on Custom ASP Controls/User Controls for more details.
I hope this helps,
All I am asking is there a way to configure IIS so that .html/.css/.jpg/.gif files can be mapped to the ASP.NET ISAPI extension, without going though the IIS Control panel. Basically what I am looking for is a way to upload a page, which when executed it will check the mappings and update them in the metabase so they are routed though asp.net instead of the default IIS static file handler, for the website in question, and not effect the rest of the websites on said webserver.
I know how to make and use HTTP handler to be used in asp.net, thats not the issue. Its just getting it into the asp.net pipeline in the first place.