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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. How To Include An ASPX Page In A Web Control

How To Include An ASPX Page In A Web Control

Scheduled Pinned Locked Moved ASP.NET
tutorialquestionlearning
2 Posts 2 Posters 1 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
    Sketchy Steve
    wrote on last edited by
    #1

    Hi there, What I want to create is a image uploader web control. It will consist of two buttons (one to upload one to clear an uploaded file), an image to show what file has been uploaded or an image of a question mark if none has been uploaded yet and a hidden field to store the address of the file once it has been uploaded. Now thats all easy enough (a composite control does nicely so far) but when you click on the upload button it gets a bit harder. At this point a popup will appear with a preview pane for the image and an ok button (to uploaded the image and writeback to the parent page) and a cancel button to close the window. Is this possible and has anyone done anything similar? From my searches so far I assume I will need to embed the popup (aspx) page as a resource in my project and then call that in my web control (as with any images used aswell). Is there any example code to call a page which has been embeded in a webcontrol floating about? If some one could give me a bit of sample code with directions just to show me how to create a control with one button with opens a popup embded in its dll that would be most appreciated. When its finished i'll chuck it on the site! Cheers Steve

    J 1 Reply Last reply
    0
    • S Sketchy Steve

      Hi there, What I want to create is a image uploader web control. It will consist of two buttons (one to upload one to clear an uploaded file), an image to show what file has been uploaded or an image of a question mark if none has been uploaded yet and a hidden field to store the address of the file once it has been uploaded. Now thats all easy enough (a composite control does nicely so far) but when you click on the upload button it gets a bit harder. At this point a popup will appear with a preview pane for the image and an ok button (to uploaded the image and writeback to the parent page) and a cancel button to close the window. Is this possible and has anyone done anything similar? From my searches so far I assume I will need to embed the popup (aspx) page as a resource in my project and then call that in my web control (as with any images used aswell). Is there any example code to call a page which has been embeded in a webcontrol floating about? If some one could give me a bit of sample code with directions just to show me how to create a control with one button with opens a popup embded in its dll that would be most appreciated. When its finished i'll chuck it on the site! Cheers Steve

      J Offline
      J Offline
      Javier Lozano
      wrote on last edited by
      #2

      Check out this control[^]. For more controls, see here[^]. ~Javier Lozano

      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