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 can i create an aspx page dynamically

How can i create an aspx page dynamically

Scheduled Pinned Locked Moved ASP.NET
questioncsharp
9 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
    Satish Developer
    wrote on last edited by
    #1

    i want to create sample.aspx page dynamically using c# coding. Actual requirement is, if i have one page which contains "Generate Page" buttton. When i click on it, it generates a webpage with custom name. How can i achieve this through code?

    G. Satish

    M N J 3 Replies Last reply
    0
    • S Satish Developer

      i want to create sample.aspx page dynamically using c# coding. Actual requirement is, if i have one page which contains "Generate Page" buttton. When i click on it, it generates a webpage with custom name. How can i achieve this through code?

      G. Satish

      M Offline
      M Offline
      Mogaambo
      wrote on last edited by
      #2

      Ignore, repost

      S 2 Replies Last reply
      0
      • M Mogaambo

        Ignore, repost

        S Offline
        S Offline
        Satish Developer
        wrote on last edited by
        #3

        what ignore man? have u studied my question? what i have reposted? It is better to think about the question what i have asked but not the way already some one posted this ...like this..

        G. Satish

        1 Reply Last reply
        0
        • M Mogaambo

          Ignore, repost

          S Offline
          S Offline
          Satish Developer
          wrote on last edited by
          #4

          why u change the color of my question? This is not a good way. I am asking different questions always. Read one or two times before doing this

          G. Satish

          V 1 Reply Last reply
          0
          • S Satish Developer

            i want to create sample.aspx page dynamically using c# coding. Actual requirement is, if i have one page which contains "Generate Page" buttton. When i click on it, it generates a webpage with custom name. How can i achieve this through code?

            G. Satish

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

            Satish - Developer wrote:

            "Generate Page" buttton. When i click on it, it generates a webpage with custom name.

            ASPX pages are normal files with markup and necessary page directives. So you can use StreamWriter / FileStream to create a file with ASPX extension. BTW, why you need to do this ?

            All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

            S 1 Reply Last reply
            0
            • N N a v a n e e t h

              Satish - Developer wrote:

              "Generate Page" buttton. When i click on it, it generates a webpage with custom name.

              ASPX pages are normal files with markup and necessary page directives. So you can use StreamWriter / FileStream to create a file with ASPX extension. BTW, why you need to do this ?

              All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

              S Offline
              S Offline
              Satish Developer
              wrote on last edited by
              #6

              why i need means, i need to generate this aspx pages in 1000's for search engine optimization.. some of the content has been changed while creating a page.

              G. Satish

              N 1 Reply Last reply
              0
              • S Satish Developer

                i want to create sample.aspx page dynamically using c# coding. Actual requirement is, if i have one page which contains "Generate Page" buttton. When i click on it, it generates a webpage with custom name. How can i achieve this through code?

                G. Satish

                J Offline
                J Offline
                Jagadeesh Jupalli
                wrote on last edited by
                #7

                Do you want to generate user specific code dynamically and display it on the webpage. With HTML formatting in it??? If I am Right... in .aspx page (This page is common for all the Customers)in .aspx.cs page string t = ........; //Pass client specific data here. you can also use HTML taga as u wish for formatting the data. Use stringbuilder if you have........... ClientBody.InnerHtml = Server.HtmlDecode(t); // to display in .aspx page ~JJ

                1 Reply Last reply
                0
                • S Satish Developer

                  why u change the color of my question? This is not a good way. I am asking different questions always. Read one or two times before doing this

                  G. Satish

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

                  Satish - Developer wrote:

                  why u change the color of my question?

                  A message becomes bright red when it is high-voted or dimmed (grayed) when it is low voted. On the lighter vein, if you still want to find out who changed the color of your question, I would suggest you the following: [JOKE] You ought to ask it to CP Design Team. [/JOKE]

                  Vasudevan Deepak Kumar Personal Homepage
                  Tech Gossips
                  A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

                  1 Reply Last reply
                  0
                  • S Satish Developer

                    why i need means, i need to generate this aspx pages in 1000's for search engine optimization.. some of the content has been changed while creating a page.

                    G. Satish

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

                    Satish - Developer wrote:

                    i need to generate this aspx pages in 1000's for search engine optimization

                    Ahh, you are lost totally. Have you ever though about maintaining the pages when something changes ? This is not the right way to go. Try URL rewriting instead.

                    All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

                    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