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. dynamically creating .aspx pages with controls using asp.net with c#

dynamically creating .aspx pages with controls using asp.net with c#

Scheduled Pinned Locked Moved ASP.NET
csharptutorialasp-net
3 Posts 3 Posters 2 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
    developerit
    wrote on last edited by
    #1

    iam using asp.net with c#; iam having 5 textboxes textbox1==username textbox2=how many images on top of the page(ie enter integer value) textbox3=how many images on bottom of the page(ie enteger integer value) textbox4=how many images on left of the page(ie enter integer value) textbox5=how many images on right of the page(ie enter integer value) and a button to create when user click on button then new page is created with username and image controls are displayed on top,bottom,right ,left what ever he has submitted in the form and then user can upload the images with file upload control . when he clicks any iamge he should get the option forupload image and there should be two options previous image(the current what we have clicked) and the new image what we have browse how to do this can you give me example which helps me

    D T 2 Replies Last reply
    0
    • D developerit

      iam using asp.net with c#; iam having 5 textboxes textbox1==username textbox2=how many images on top of the page(ie enter integer value) textbox3=how many images on bottom of the page(ie enteger integer value) textbox4=how many images on left of the page(ie enter integer value) textbox5=how many images on right of the page(ie enter integer value) and a button to create when user click on button then new page is created with username and image controls are displayed on top,bottom,right ,left what ever he has submitted in the form and then user can upload the images with file upload control . when he clicks any iamge he should get the option forupload image and there should be two options previous image(the current what we have clicked) and the new image what we have browse how to do this can you give me example which helps me

      D Offline
      D Offline
      Dinesh Mani
      wrote on last edited by
      #2

      I'm not sure if you can create a page, as in a physical .aspx file dynamically. But, it is possible to create and place controls during run-time. You have to have a base page i.e. a blank page with the required panels [Left/right/...]. When the user clicks on the button on the user input form, get the values from the textboxes and use it to loop and create controls. You can create controls like this _[ControlType]_ control__LoopCounter_ = new _[ControlType]()_ Set the appropriate properties and add the control to the required panel. HTH!

      1 Reply Last reply
      0
      • D developerit

        iam using asp.net with c#; iam having 5 textboxes textbox1==username textbox2=how many images on top of the page(ie enter integer value) textbox3=how many images on bottom of the page(ie enteger integer value) textbox4=how many images on left of the page(ie enter integer value) textbox5=how many images on right of the page(ie enter integer value) and a button to create when user click on button then new page is created with username and image controls are displayed on top,bottom,right ,left what ever he has submitted in the form and then user can upload the images with file upload control . when he clicks any iamge he should get the option forupload image and there should be two options previous image(the current what we have clicked) and the new image what we have browse how to do this can you give me example which helps me

        T Offline
        T Offline
        Tej Aj
        wrote on last edited by
        #3

        check this post http://opexsolution.com/forum/viewtopic.php?f=15&t=37&p=107#p107

        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