Creating Dynamic instance in C#

Discussion in 'ASP .Net Mobile' started by Karthik, Aug 18, 2003.

  1. Karthik

    Karthik Guest

    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
    Karthik, Aug 18, 2003
    #1
    1. Advertising

  2. Hi Kathie,

    Use the Assembly.Load() method. See:
    http://msdn.microsoft.com/library/d...lrfSystemReflectionAssemblyClassLoadTopic.asp
    (watch for line breaks in the hyperlink)

    Hope this helps,
    bliz

    --
    Jim Blizzard | http://weblogs.asp.net/jblizzard
    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" <> wrote in message
    news:...
    > 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
    >
    >
    Jim Blizzard [MSFT], Aug 25, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. chris brat
    Replies:
    1
    Views:
    629
    chris brat
    May 10, 2006
  2. Sridhar R
    Replies:
    14
    Views:
    1,398
    =?iso-8859-1?Q?Fran=E7ois?= Pinard
    Feb 10, 2004
  3. Kent Johnson
    Replies:
    4
    Views:
    405
    Terry Hancock
    Nov 13, 2004
  4. Greg Hoover
    Replies:
    1
    Views:
    488
    Robert Bossy
    Mar 25, 2008
  5. Olive
    Replies:
    4
    Views:
    241
    Olive
    Jul 6, 2012
Loading...

Share This Page