[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.mobile

Creating Dynamic instance in C#

Karthik

8/18/2003 1:01:00 PM

hi

How to create a instace of class.when the class name is obtained from
textbox?
Please help me?

Thank you in Advance
Regards
Karthik


1 Answer

jimblizz [ms]

8/24/2003 11:26:00 PM

0

Hi Kathie,

Use the Assembly.Load() method. See:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemReflectionAssemblyClassLoa...
(watch for line breaks in the hyperlink)

Hope this helps,
bliz

--
Jim Blizzard | http://weblogs.asp.net...
Sr .NET Developer Specialist
Microsoft

Your Potential. Our Passion.

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only, so that others may benefit. Thanks.


"Karthik" <karthik@vishwak.com> wrote in message
news:OHOxBiYZDHA.652@tk2msftngp13.phx.gbl...
> hi
>
> How to create a instace of class.when the class name is obtained from
> textbox?
> Please help me?
>
> Thank you in Advance
> Regards
> Karthik
>
>