ASP "embedded" Pages

Last post 11-03-2009 8:45 AM by urstop. 2 replies.

Sort Posts:

  • ASP "embedded" Pages

    10-29-2009, 6:38 PM

    Hey,

       A while back I had written a quite large and over time evolved CMS in php for personal use.  Now that I am porting it over to asp.net I am running into some problems that I'm not sure how to solve in asp.net.

       In the backend I had some tables that would specify some information for administration modules.  (IE a name, description, and path to the administration module (blogAdmin.php)).  I would then directly include this php file into a content area.  What would be the best way to implement something similar in asp.net?  IE I want to be able to create some reusable administration module (in a page or control?), and then be able to embed it into a container on the fly based on a users request.

       Thanks for any help.

  • Re: ASP "embedded" Pages

    10-30-2009, 2:09 AM
    • Member
      4 point Member
    • DaveCS2
    • Member since 10-30-2009, 1:46 AM
    • Posts 4

    You can make use of use of Web User Controls.  They can be static or dynamic. I put simple demo and download here.

    http://www.thesupermedia.com/demo/DynamicUserControl/default.aspx


  • Re: ASP "embedded" Pages

    11-03-2009, 8:45 AM
    • Member
      434 point Member
    • urstop
    • Member since 12-03-2007, 10:24 PM
    • Posts 98

    You can create different user controls like say

    blogadmin.ascx

    chatadmin.ascx

    etc and then depending on the users request, load the needed .ascx file using

    LoadControl method

    and add this control to the aspx page at run time. 

Page 1 of 1 (3 items)