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 6364413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:09:38+00:00 2026-05-25T00:09:38+00:00

I closely followed the link C# – Correct Way to Load Assembly, Find Class

  • 0

I closely followed the link C# – Correct Way to Load Assembly, Find Class and Call Run() Method and got the code to load classes from assembly dynamically.

             Assembly assembly = Assembly.LoadFile(assemblyName);
             Type type = assembly.GetType(className);
             object objCustomClass = Activator.CreateInstance(type) as object; 

where assemblyName & className are got from database

But i need to load usercontrol classes from database . I dont have assembly since user control is in UI itself . How can do this ?

Edit : I am changing my question a bit . Now i am storing user control file in some other location may be in blob storage or some other place. ( not in my project work space ) and i store the url of the user control in database . Now how can load this usercontrol to my web page ?

Can i create a dll out of all my user controls and load exactly as above code ?

  • 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-25T00:09:38+00:00Added an answer on May 25, 2026 at 12:09 am

    You use MyControl control = (MyControl)Page.LoadControl("mycontrolname.ascx")

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

Sidebar

Related Questions

I have two closely related classes which I'll call Widget and Sprocket. Sprocket has
This question relates very closely to Can a nested C++ class inherit its enclosing
I have followed quite closely some techniques for making little CSS triangles with pseudo
I've followed the spring http proxying tutorial as closely as possibly, but I still
I followed closely guide on Localization: http://docs.sencha.com/ext-js/4-0/#!/guide/localization , however I cannot make it work
At work I work closely with MS-Office. I have managed to generate some scripts
This is closely related to an earlier question . In the managed world: How
The question is closely related to my past question here, but it is not
I heard that setting index is closely related to the sequence of joining tables.
I'm building a custom print template closely following the directions in Chuck Ainslie's articles

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.