Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Creating aspx Page Dynamically

Creating aspx Page Dynamically

Scheduled Pinned Locked Moved ASP.NET
helpcombusiness
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    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.

    C C K 3 Replies Last reply
    0
    • L Lost User

      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.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • L Lost User

        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.

        C Offline
        C Offline
        Colin Angus Mackay
        wrote on last edited by
        #3

        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.

        L 1 Reply Last reply
        0
        • C Colin Angus Mackay

          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.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          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

          C 1 Reply Last reply
          0
          • L Lost User

            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.

            K Offline
            K Offline
            Kariem Soudy
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            • L Lost User

              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

              C Offline
              C Offline
              Colin Angus Mackay
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups