Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6638395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:25:51+00:00 2026-05-25T23:25:51+00:00

I have a problem in asp.net I’m developing a website in visual studio 2008

  • 0

I have a problem in asp.net

I’m developing a website in visual studio 2008 using (asp.net/vb)

I have to allow registered users to build pages and add controls that are already defined by the same user.

My problem is how to build this page dynamically?

In other words, I’d like to make like any CMS (e.g. Joomla). CMSs allow us to make new pages and add our controls then save them…

I think alot and I find a solution by making a code-generator (from A->Z) that generates the page and its code-behind (apsx file & aspx.vb file)

Is there any tool or solution can help me better than my solution??

Any help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T23:25:51+00:00Added an answer on May 25, 2026 at 11:25 pm

    If you look at the designer cs file for an aspx page you will notice that the designer is adding objects to the controls for the page at runtime. If you want, you could the compiler services at run time to generate a class for the page, or you could create a function that creates an instance of the control by it’s type name and then add that object to the page.

    Type.GetType("myControl").GetConstructor(new Type[] { typeof(string) }).Invoke(new object[] { "myString" });
    

    Which will should return the created control, that you can then hookup in the same way that the designer does it.

    EDIT: Or you could look-up compiler services. I once made a program that took it’s xml based config file, and turned it into a compilable .cs file using string builder. Then I used compiler services to compile that text into a class which I executed. It started life like this:

    using System;
    public class MyConfigClass
    {
            {0}
            {1}
            {2}
        public MyConfigClass()
        {
        }
    }
    

    and ended up like this

    using System;
    public class MyConfigClass
    {
        public string FirstName{
            get;
            set;
        }
        public string LastName{
            get;
            set;
        }
        public string Age {
            get;
            set;
        }
    
        public MyConfigClass()
        {
    
        }
    }
    

    based on this information

    <?xml version="1.0" encoding="utf-8"?>
    <ConfigProperties>
      <Property>
        <Name>FirstName</Name>
        <Value>John</Value>
      </Property>
      <Property>
        <Name>LastName</Name>
        <Value>Smith</Value>
      </Property>
      <Property>
        <Name>Age</Name>
        <Value>12</Value>
      </Property>
    </ConfigProperties>
    

    Basically the string builder took: “public {0} {1}{get;set;}” for each property then built the final string based on the values of the xml. Compiler services then turned it into a class. Once the class was made it could be stored for future use. Another attempt I did was to run the code file out disk in a web site project, then called the site to restart (which effectively recompiled all the that IIS finds in the directory, including your new code files).

    The possibilities 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with a C# ASP .NET project in Visual Studio 2008
i have a problem i am developing an asp.net mvc project. Website is in
I have problem while using jquery maskedinput with asp.net textbox. I have a check
i have a problem with a asp.net website first i will explain the current
I have a problem with my ASP.NET website, it got hacked. One hacker found
I have a problem on submitting an asp.net mvc form that is using Xval
I have the following problem: Using asp.net C# and calling several places in code
I have a problem where I am using ASP.Net to write a cookie. The
I am using .net entity framework, asp.net mvc, sqlexpress and have one problem: when
i have a problem in asp.net web-application. I'm using UrlRewritingNet.UrlRewrite and it's works fine

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.