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. dynamic content in user control

dynamic content in user control

Scheduled Pinned Locked Moved ASP.NET
hardwarequestion
5 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.
  • H Offline
    H Offline
    hauptman
    wrote on last edited by
    #1

    Hi! I have the situation that I have an user control and some aspx sites which host this control. Now I would like to say that if the site a.aspx has embedded the control the control shall view the image a.jpeg, if the site b.aspx has embedded the control it should view b.jpeg and so on. Any ideas?

    D 1 Reply Last reply
    0
    • H hauptman

      Hi! I have the situation that I have an user control and some aspx sites which host this control. Now I would like to say that if the site a.aspx has embedded the control the control shall view the image a.jpeg, if the site b.aspx has embedded the control it should view b.jpeg and so on. Any ideas?

      D Offline
      D Offline
      DavidNohejl
      wrote on last edited by
      #2

      so basicaly you want to figure out details (e.g path) about page in which is your usercontrol embedded? David Never forget: "Stay kul and happy" (I.A.)
      David's thoughts / dnhsoftware.org / MyHTMLTidy

      H 1 Reply Last reply
      0
      • D DavidNohejl

        so basicaly you want to figure out details (e.g path) about page in which is your usercontrol embedded? David Never forget: "Stay kul and happy" (I.A.)
        David's thoughts / dnhsoftware.org / MyHTMLTidy

        H Offline
        H Offline
        hauptman
        wrote on last edited by
        #3

        yes. I just need to now which class embeds the user control ...

        D 1 Reply Last reply
        0
        • H hauptman

          yes. I just need to now which class embeds the user control ...

          D Offline
          D Offline
          DavidNohejl
          wrote on last edited by
          #4

          I think you can simply use Control.Page[^], no? "This property's value reflects the name of the .aspx file that contains the server control." David Never forget: "Stay kul and happy" (I.A.)
          David's thoughts / dnhsoftware.org / MyHTMLTidy

          H 1 Reply Last reply
          0
          • D DavidNohejl

            I think you can simply use Control.Page[^], no? "This property's value reflects the name of the .aspx file that contains the server control." David Never forget: "Stay kul and happy" (I.A.)
            David's thoughts / dnhsoftware.org / MyHTMLTidy

            H Offline
            H Offline
            hauptman
            wrote on last edited by
            #5

            Thanks, this is exactly what I need.

            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