Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. how to create instance of class in asp.net

how to create instance of class in asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netvisual-studiohelptutorial
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dream_liner_7e7
    wrote on last edited by
    #1

    i downloaded few .cs files from internet include it in my vs project in app_code folder but when i try to create instance of it in my webform(importer.aspx.cs) i cant create it... i created my class (class1.cs) just for test it works fi9 .. i dont know what is going wrong ... plz help... thanks in advance.

    A P 2 Replies Last reply
    0
    • D dream_liner_7e7

      i downloaded few .cs files from internet include it in my vs project in app_code folder but when i try to create instance of it in my webform(importer.aspx.cs) i cant create it... i created my class (class1.cs) just for test it works fi9 .. i dont know what is going wrong ... plz help... thanks in advance.

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      What is the access Specifier of that class ? You have to make it public, by default it is Internal.

      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

      D 1 Reply Last reply
      0
      • D dream_liner_7e7

        i downloaded few .cs files from internet include it in my vs project in app_code folder but when i try to create instance of it in my webform(importer.aspx.cs) i cant create it... i created my class (class1.cs) just for test it works fi9 .. i dont know what is going wrong ... plz help... thanks in advance.

        P Offline
        P Offline
        Parwej Ahamad
        wrote on last edited by
        #3

        Make sure include name space name like NameSpacename.ClassName object =new NameSpacename.ClassName();

        Parwej Ahamad ahamad.parwej@gmail.com

        D 1 Reply Last reply
        0
        • A Abhijit Jana

          What is the access Specifier of that class ? You have to make it public, by default it is Internal.

          Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

          D Offline
          D Offline
          dream_liner_7e7
          wrote on last edited by
          #4

          thanks for the help.

          1 Reply Last reply
          0
          • P Parwej Ahamad

            Make sure include name space name like NameSpacename.ClassName object =new NameSpacename.ClassName();

            Parwej Ahamad ahamad.parwej@gmail.com

            D Offline
            D Offline
            dream_liner_7e7
            wrote on last edited by
            #5

            thanks for the help....

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups