Creating aspx Page Dynamically
-
Hi, my requirements are same as of CodeProject.com. I want to create a page(aspx) for every user who register on my website. Same as CodeProject.com creates a new pages when one writes a article. For eg. if a user register on my site and a ID assisgned to him is John9878. Then system should create John9878.aspx and John9878.aspx.cs. Can somebody help me on this problem.
-
Hi, my requirements are same as of CodeProject.com. I want to create a page(aspx) for every user who register on my website. Same as CodeProject.com creates a new pages when one writes a article. For eg. if a user register on my site and a ID assisgned to him is John9878. Then system should create John9878.aspx and John9878.aspx.cs. Can somebody help me on this problem.
I would say you need a subfolder ( www.mysite.com/users for example ) and use URL rewriting to redirect John9878,aspx to redirect to a standard page which takes that name as a parameter and looks it up in the database.
Christian Graus Driven to the arms of OSX by Vista.
-
Hi, my requirements are same as of CodeProject.com. I want to create a page(aspx) for every user who register on my website. Same as CodeProject.com creates a new pages when one writes a article. For eg. if a user register on my site and a ID assisgned to him is John9878. Then system should create John9878.aspx and John9878.aspx.cs. Can somebody help me on this problem.
Amandeep Singh Bhullar wrote:
Hi, my requirements are same as of CodeProject.com. I want to create a page(aspx) for every user who register on my website. Same as CodeProject.com creates a new pages when one writes a article.
I don't think it does. It just looks like it does. It is just a page backed by a database and to make nice URLs you can create an HttpModule or HttpHandler that examines the URL from the browser and translates it to an internal value that then renders the page. As far as the outside world is concerned it looks like a new page file has been created. URLs just look like file paths because originally they were just file paths in the server. These days a URL can refer to anything. Look at ASP.NET MVC routing to see some powerful stuff done with URLs.
*Developer Day Scotland - Free community conference *Colin Angus Mackay's Blog *Latest Scottish Developers Newsletter
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Remember that the force of gravity can go up as well as down.
-
Amandeep Singh Bhullar wrote:
Hi, my requirements are same as of CodeProject.com. I want to create a page(aspx) for every user who register on my website. Same as CodeProject.com creates a new pages when one writes a article.
I don't think it does. It just looks like it does. It is just a page backed by a database and to make nice URLs you can create an HttpModule or HttpHandler that examines the URL from the browser and translates it to an internal value that then renders the page. As far as the outside world is concerned it looks like a new page file has been created. URLs just look like file paths because originally they were just file paths in the server. These days a URL can refer to anything. Look at ASP.NET MVC routing to see some powerful stuff done with URLs.
*Developer Day Scotland - Free community conference *Colin Angus Mackay's Blog *Latest Scottish Developers Newsletter
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Remember that the force of gravity can go up as well as down.
Colin Angus Mackay wrote:
I don't think it does. It just looks like it does.
Check it out(Just For Example) http://www.codeproject.com/KB/miscctrl/vbnet-multitab-browser.aspx This URL depicts that it is a new page. Also this page is indexed in Search Engine. If it is simple URL rewriting, then how Search engine index it. Same is the case with all articles
-
Hi, my requirements are same as of CodeProject.com. I want to create a page(aspx) for every user who register on my website. Same as CodeProject.com creates a new pages when one writes a article. For eg. if a user register on my site and a ID assisgned to him is John9878. Then system should create John9878.aspx and John9878.aspx.cs. Can somebody help me on this problem.
consider using ASP.NET MVC or just use HttpHandlers see this article http://msdn.microsoft.com/en-us/library/ms972953.aspx[^]
Web Developer
modified on Tuesday, February 24, 2009 3:11 AM
-
Colin Angus Mackay wrote:
I don't think it does. It just looks like it does.
Check it out(Just For Example) http://www.codeproject.com/KB/miscctrl/vbnet-multitab-browser.aspx This URL depicts that it is a new page. Also this page is indexed in Search Engine. If it is simple URL rewriting, then how Search engine index it. Same is the case with all articles
Amandeep Singh Bhullar wrote:
then how Search engine index it.
Because the search engine doesn't know how the page got rendered. It doesn't care how it got rendered. It just has a rendered page at a specific URL that it can put in its cache. The website I've been working on the last few months has about a dozen page templates (all aspx files) but if you were to look at it in a search engine you'd see hundreds of "pages" on the site. All that information is in the database, not in files.
*Developer Day Scotland - Free community conference *Colin Angus Mackay's Blog *Latest Scottish Developers Newsletter
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Remember that the force of gravity can go up as well as down.