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. how to create an aspx page dynamically in one asp.net web apllication

how to create an aspx page dynamically in one asp.net web apllication

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelptutorial
11 Posts 5 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.
  • S Offline
    S Offline
    santoshkumarB
    wrote on last edited by
    #1

    The problem is in an ASP.NET web applcation their is an option called addnew page, so the users will create his own pages in that page . An aspx page should be added to users account dynamically so that he can add his contents in that page.

    santosh

    E M V 3 Replies Last reply
    0
    • S santoshkumarB

      The problem is in an ASP.NET web applcation their is an option called addnew page, so the users will create his own pages in that page . An aspx page should be added to users account dynamically so that he can add his contents in that page.

      santosh

      E Offline
      E Offline
      Edwin Syarief
      wrote on last edited by
      #2

      Hi santoshkumarB, So, what is your point? Please more specific.

      Regard, Edwin :)

      S 1 Reply Last reply
      0
      • E Edwin Syarief

        Hi santoshkumarB, So, what is your point? Please more specific.

        Regard, Edwin :)

        S Offline
        S Offline
        santoshkumarB
        wrote on last edited by
        #3

        hi edwin, thank you, well my problem is in an asp.net application user has an option of add new page in his account. So that a new ASPX page has to be added into his account.. Consider an example... This is basically an ecommerce project . if their is an user called xyz. he wants to add a new page in his account so that an aspx page should be dynamically added only to his account.And xyz is going to add his own images ,template in that page. thank you

        santosh

        E N 2 Replies Last reply
        0
        • S santoshkumarB

          hi edwin, thank you, well my problem is in an asp.net application user has an option of add new page in his account. So that a new ASPX page has to be added into his account.. Consider an example... This is basically an ecommerce project . if their is an user called xyz. he wants to add a new page in his account so that an aspx page should be dynamically added only to his account.And xyz is going to add his own images ,template in that page. thank you

          santosh

          E Offline
          E Offline
          Edwin Syarief
          wrote on last edited by
          #4

          Ohh... I see. santoshkumarB, u should use CMS. Have U ever heard about CMS? This CMS will solve your problems.:)

          Regard, Edwin :)

          S 1 Reply Last reply
          0
          • S santoshkumarB

            The problem is in an ASP.NET web applcation their is an option called addnew page, so the users will create his own pages in that page . An aspx page should be added to users account dynamically so that he can add his contents in that page.

            santosh

            M Offline
            M Offline
            Malcolm Smart
            wrote on last edited by
            #5

            Data for content management like this is usually persisted in some data storage mechanism, like a database or xml file. The file/data describes the page and content, and then a generic pages is used to read this data and build the page on teh fly. Look at iGoogle. Each page for each user is different. But Google don't create a new page for each user, they store the users layout in a DB.

            "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

            S 1 Reply Last reply
            0
            • E Edwin Syarief

              Ohh... I see. santoshkumarB, u should use CMS. Have U ever heard about CMS? This CMS will solve your problems.:)

              Regard, Edwin :)

              S Offline
              S Offline
              santoshkumarB
              wrote on last edited by
              #6

              Thank you sir, no i havn't heard abt CMS. Can u tell me wat is tis CMS But can we use xml,xslt to solve this problem....

              santosh

              E 1 Reply Last reply
              0
              • M Malcolm Smart

                Data for content management like this is usually persisted in some data storage mechanism, like a database or xml file. The file/data describes the page and content, and then a generic pages is used to read this data and build the page on teh fly. Look at iGoogle. Each page for each user is different. But Google don't create a new page for each user, they store the users layout in a DB.

                "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

                S Offline
                S Offline
                santoshkumarB
                wrote on last edited by
                #7

                Thank you,, Will xml and xslt sove this problem .....

                santosh

                M 1 Reply Last reply
                0
                • S santoshkumarB

                  Thank you,, Will xml and xslt sove this problem .....

                  santosh

                  M Offline
                  M Offline
                  Malcolm Smart
                  wrote on last edited by
                  #8

                  Yes. Store the data in Xml, apply an xlst translation to it and, as if by magic, you have a web page. You need to work on the xml layout to ensure the page is described well. It is not a 30 minute job either, but certainly better than writing a HTML code generator, which is what you would need to do for your original idea.

                  "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

                  1 Reply Last reply
                  0
                  • S santoshkumarB

                    hi edwin, thank you, well my problem is in an asp.net application user has an option of add new page in his account. So that a new ASPX page has to be added into his account.. Consider an example... This is basically an ecommerce project . if their is an user called xyz. he wants to add a new page in his account so that an aspx page should be dynamically added only to his account.And xyz is going to add his own images ,template in that page. thank you

                    santosh

                    N Offline
                    N Offline
                    N a v a n e e t h
                    wrote on last edited by
                    #9

                    Something like a content management system ? You can open existing ASPX files using filestream and write it to the disk with other name. Put some special tags where your content need to be replaced. Replace this special tags with your content when page is creating. But keep it in mind that this will work if you are using ASP.NET 2.0, in ASP.NET 1.1, code behind data will be wrapped in dll's. So creating a simple aspx file won't do work. Alternative approach would be using UrlRewriting. In this case, you won't be having files, all the URL's you are seeing will be virtual.


                    My Website | Ask smart questions

                    1 Reply Last reply
                    0
                    • S santoshkumarB

                      Thank you sir, no i havn't heard abt CMS. Can u tell me wat is tis CMS But can we use xml,xslt to solve this problem....

                      santosh

                      E Offline
                      E Offline
                      Edwin Syarief
                      wrote on last edited by
                      #10

                      CMS (Content Management System). In ASP.NET 2.0 U will find it in ToolBox Web Part. Or other way U can Save every user settings in database. But I suggest U to use web parts. U can find it at msdn how to use it. Of course U can use xml.

                      Regard, Edwin :)

                      1 Reply Last reply
                      0
                      • S santoshkumarB

                        The problem is in an ASP.NET web applcation their is an option called addnew page, so the users will create his own pages in that page . An aspx page should be added to users account dynamically so that he can add his contents in that page.

                        santosh

                        V Offline
                        V Offline
                        Vasudevan Deepak Kumar
                        wrote on last edited by
                        #11

                        Be aware of exposing dynamic WebForms to user. Unless you have enough NTFS permissions in place, you are opening up the Pandorra's box on your server.:)

                        Vasudevan Deepak Kumar Personal Homepage Tech Gossips

                        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