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. Load usercontrol from string

Load usercontrol from string

Scheduled Pinned Locked Moved ASP.NET
databasequestion
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.
  • E Offline
    E Offline
    econner
    wrote on last edited by
    #1

    I am looking into loading the content of a usercontrol from a database instead of from a ascx file. I have found some information on ControlParser but I have been unsucessful in getting it to work. Does anyone have any examples of loading a control in this manner? Thanks

    T 1 Reply Last reply
    0
    • E econner

      I am looking into loading the content of a usercontrol from a database instead of from a ascx file. I have found some information on ControlParser but I have been unsucessful in getting it to work. Does anyone have any examples of loading a control in this manner? Thanks

      T Offline
      T Offline
      ToddHileHoffer
      wrote on last edited by
      #2

      Wow. That sounds like a great plan :doh: Are you seriously trying to store code in a database? Why would you do that?

      I didn't get any requirements for the signature

      E 1 Reply Last reply
      0
      • T ToddHileHoffer

        Wow. That sounds like a great plan :doh: Are you seriously trying to store code in a database? Why would you do that?

        I didn't get any requirements for the signature

        E Offline
        E Offline
        econner
        wrote on last edited by
        #3

        This is only for page template layouts so that I can allow the user to choose from a layout or copy it and edit it themselves.

        E T 2 Replies Last reply
        0
        • E econner

          This is only for page template layouts so that I can allow the user to choose from a layout or copy it and edit it themselves.

          E Offline
          E Offline
          econner
          wrote on last edited by
          #4

          Here is some info from MSDN http://msdn.microsoft.com/en-us/library/system.web.ui.design.controlparser.aspx[^]

          1 Reply Last reply
          0
          • E econner

            This is only for page template layouts so that I can allow the user to choose from a layout or copy it and edit it themselves.

            T Offline
            T Offline
            ToddHileHoffer
            wrote on last edited by
            #5

            Interesting. Seems more complicated than something I would tackle. I would use css for my styling and allow the user to set some css properties. But that's about as far as I would go.

            I didn't get any requirements for the signature

            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