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. Advertisements

  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. Advertisements

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:
    816
    chris brat
    May 10, 2006
  2. Sridhar R
    Replies:
    14
    Views:
    1,726
    =?iso-8859-1?Q?Fran=E7ois?= Pinard
    Feb 10, 2004
  3. Kent Johnson
    Replies:
    4
    Views:
    651
    Terry Hancock
    Nov 13, 2004
  4. Gerry Sutton
    Replies:
    1
    Views:
    720
    Peter Otten
    Apr 16, 2005
  5. Gerard Flanagan
    Replies:
    3
    Views:
    665
    Terry Hancock
    Nov 19, 2005
  6. Sandra-24
    Replies:
    18
    Views:
    2,275
    Steve Holden
    Apr 29, 2006
  7. Greg Hoover
    Replies:
    1
    Views:
    666
    Robert Bossy
    Mar 25, 2008
  8. Olive
    Replies:
    4
    Views:
    428
    Olive
    Jul 6, 2012
Loading...