Last post Jan 22, 2008 08:27 PM by bulgarian388
Jan 18, 2008 02:23 PM|bulgarian388|LINK
I'm working for a company at the moment that has website templates and about 25K customers. Each customer gets their template "customized" by their Id number. The problem is that on the website directory for each Id number there is a folder with an ASP file
in it. (Yes this is an application that's written in ASP Classic) It's a hasle to create new folder groups for new users, so I was thinking that I can port this to a .Net application which can itercept the Id number being requested and then redirect to one
file that takes the Id number and does it's thing. I would assume that it would an IHttpModule that IIS runs, right? If so, or if not, how could I go about implementing the interceptor? I've never written IHttpModules before so I'm not too sure how to go about
Help would be much appreciated!
Jan 18, 2008 02:45 PM|Ken Tucker|LINK
ScottGu has a nice blog entry on this
Jan 18, 2008 02:48 PM|docluv|LINK
There are several things that come to mind:
Personalization and Web Parts - This would be the more prudent path to investigate for a long term solution.
using the RewritePath method to do a URL rewrite - Probably not the most optimal for this solution
using a custom httpHanlder to return the custom template, merged with anything you need to dynamically generate. - maybe the easiest to do in a short amount of time.
Finally you can do it the SharePoint way and use the VirtualPath Provider and retrieve the files that way, but this gets real complicated IMHO.
Jan 22, 2008 08:27 PM|bulgarian388|LINK
Thanks for the help guys. I ended up writting an HttpModule and it works like a charm.