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 complete HTML Page on the Fly

Creating complete HTML Page on the Fly

Scheduled Pinned Locked Moved ASP.NET
csharphtmlasp-netquestion
6 Posts 2 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.
  • D Offline
    D Offline
    Daniel Kirstenpfad
    wrote on last edited by
    #1

    Hello i want to do that: you call the aspx like that: http://localhost/dummy/dummy.aspx?parameter=hello and the ASP.NET WebApplication should create a HTML Page and let the Browse Display it like that: ..blah... HELLO ! As you can see the HTML Page that is created by the WebApplication and later-on displayed by the Browser. in the future i will create Frame-Sets with this WebApplication - but all ways i tried ended in the fact that the webapplication-HTML-Output is always encapsulated into a form... but i need to output plain HTML Source that does have NO form at all.. (like for a frame-set). Any suggestions ? mfG. Daniel Kirstenpfad

    N 1 Reply Last reply
    0
    • D Daniel Kirstenpfad

      Hello i want to do that: you call the aspx like that: http://localhost/dummy/dummy.aspx?parameter=hello and the ASP.NET WebApplication should create a HTML Page and let the Browse Display it like that: ..blah... HELLO ! As you can see the HTML Page that is created by the WebApplication and later-on displayed by the Browser. in the future i will create Frame-Sets with this WebApplication - but all ways i tried ended in the fact that the webapplication-HTML-Output is always encapsulated into a form... but i need to output plain HTML Source that does have NO form at all.. (like for a frame-set). Any suggestions ? mfG. Daniel Kirstenpfad

      N Offline
      N Offline
      Nick Parker
      wrote on last edited by
      #2

      You can parse the querystring using the Request object, and write to the page using the Response object. Something like the following:

      void Page_Load(object sender, EventArgs e)
      {
        string s = Request.QueryString["parameter"];
        Response.Write(s.ToString());
      }
      

      You might want to check out ASP.NET QuickStart Tutorial[^] for more information on learning ASP.NET. -Nick Parker

      D 1 Reply Last reply
      0
      • N Nick Parker

        You can parse the querystring using the Request object, and write to the page using the Response object. Something like the following:

        void Page_Load(object sender, EventArgs e)
        {
          string s = Request.QueryString["parameter"];
          Response.Write(s.ToString());
        }
        

        You might want to check out ASP.NET QuickStart Tutorial[^] for more information on learning ASP.NET. -Nick Parker

        D Offline
        D Offline
        Daniel Kirstenpfad
        wrote on last edited by
        #3

        well i´ve managed it by overrideing the Page-Render-Method.... and it works

        N 1 Reply Last reply
        0
        • D Daniel Kirstenpfad

          well i´ve managed it by overrideing the Page-Render-Method.... and it works

          N Offline
          N Offline
          Nick Parker
          wrote on last edited by
          #4

          :) -Nick Parker

          D 1 Reply Last reply
          0
          • N Nick Parker

            :) -Nick Parker

            D Offline
            D Offline
            Daniel Kirstenpfad
            wrote on last edited by
            #5

            sometimes the harder way is the better way ;)

            N 1 Reply Last reply
            0
            • D Daniel Kirstenpfad

              sometimes the harder way is the better way ;)

              N Offline
              N Offline
              Nick Parker
              wrote on last edited by
              #6

              Daniel Kirstenpfad wrote: sometimes the harder way is the better way Sometimes, however that's not necessarily the 'harder' way. :) -Nick Parker

              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