PDA

View Full Version : Generating a web page


vandel212
06-02-2010, 06:56 PM
Hi, I am making a website that has useful links on it, so people can set it as their homepage. Here it is:

http://www.epiclinks.com

What I would like to do is allow people to customize their own webpage (It will be in that format) with the links that they want. I do not want any kind of login for this either, I think that would make it much more appealing. Pretty much, I want people to choose 12 different websites as links (So there might be 12 different drop down boxes or something... I don't know at this point). Then they click a button and it would create a new webpage so they can set it as their homepage or add to favorites or whatever. So this would create a new html file on my server and people would be able to go to it. (ex. www.epiclinks.com/JohnDoe)

The method I'm trying to use for this is to make a catalog with an XML document of a bunch of different websites, and bind the catalog to several different drop down boxes. I've got that working just fine, my problem is how
do I generate the new html page on the server and put the data from my dropdown boxes into the new webpage?

Thanks.

Old Pedant
06-02-2010, 10:33 PM
Are you using ASP.NET or classic ASP?

In either case, I think you are doing this wrong, unless you expect to have very few people utilizing your service/pages.

The *scalable* (into thousands and thousands of people) way to do this would be to generate the pages on the fly, based on the URL the person hits you with. You could do this with URL rewrites (or the equivalent), so that when the person uses
www.epiclinks.com/JohnDoe
you essentially transform that (hidden from the user!) into a URL of the form
www.epiclinks.com/homepage.asp?name=JohnDoe
and then it's of course easy to serve up the page using standard ASP (or ASP.NET) techniques.

(Naturally, you implement this by using a database that stores each persons choices and then you use a dead simple query to get the choices for the given user and gen the page.)