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. Custom Web Controls

Custom Web Controls

Scheduled Pinned Locked Moved ASP.NET
questionhtmlhelp
2 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.
  • G Offline
    G Offline
    gekoscan
    wrote on last edited by
    #1

    I am creating a registration form which has 3 pages of content in 3 seperate blocks of html.. basically the 1 2 3 step registration. I want to be able to post back on my Registration.aspx?Page=2 and display a different page to the user by selecting a certain block of html. Page 1:

    ASP:Textbox -name ASP:Textbox -password some radio buttons

    Page 2:

    ASP:Textbox - address ASP:Textbox - phone some check boxes

    Basically I want to do this somehow with a custom web control displaying each block of html by somehow using the querystring. My Question is can I somehow pass the QueryString value into the the web control? Okay and if this isn't possible... Given that I have a Registration.aspx?Page=[somevalue] How could I go about doing what I have explained? Selecting different blocks of html depending on what the querystring yeilds. Thanks for your help everyone, steve.

    N 1 Reply Last reply
    0
    • G gekoscan

      I am creating a registration form which has 3 pages of content in 3 seperate blocks of html.. basically the 1 2 3 step registration. I want to be able to post back on my Registration.aspx?Page=2 and display a different page to the user by selecting a certain block of html. Page 1:

      ASP:Textbox -name ASP:Textbox -password some radio buttons

      Page 2:

      ASP:Textbox - address ASP:Textbox - phone some check boxes

      Basically I want to do this somehow with a custom web control displaying each block of html by somehow using the querystring. My Question is can I somehow pass the QueryString value into the the web control? Okay and if this isn't possible... Given that I have a Registration.aspx?Page=[somevalue] How could I go about doing what I have explained? Selecting different blocks of html depending on what the querystring yeilds. Thanks for your help everyone, steve.

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

      hmmm.....not too familiar with html meself :( But if I were to do it, I'd probably use the code-behind.At the Page_Load, i'd check for Page value, like so: int iPage = Request.Params("Page"); Then depending on the value of iPage, I'd load different type oncontrols on the page and then manually add it to the page, like so:

      TextBox txt = new TextBox();
      Page.Controls.Add(txt);

      Does that help? Notorious SMC


      The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning Mark Twain
      Get your facts first, and then you can distort them as much as you please Mark Twain

      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