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 call class file in asp.net

how to call class file in asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettutorial
3 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.
  • K Offline
    K Offline
    kal13na13
    wrote on last edited by
    #1

    hi i have created a C# class file and want to include the methods of it in my asp page. how i am suppose do that, should i called as a class library in my page or make use of Run method in my asp page Any suggestion kal13na13

    G M 2 Replies Last reply
    0
    • K kal13na13

      hi i have created a C# class file and want to include the methods of it in my asp page. how i am suppose do that, should i called as a class library in my page or make use of Run method in my asp page Any suggestion kal13na13

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      To use the class from asp you have to create a com+ dll and register it (in the Component Services or using regsvr32). --- b { font-weight: normal; }

      1 Reply Last reply
      0
      • K kal13na13

        hi i have created a C# class file and want to include the methods of it in my asp page. how i am suppose do that, should i called as a class library in my page or make use of Run method in my asp page Any suggestion kal13na13

        M Offline
        M Offline
        minhpc_bk
        wrote on last edited by
        #3

        There are a couple of options that you can use to call the methods defined in a seperate source file. + Use the script tag with the runat="server", specify the path of the source file in the src attribute of the script element. + Use the @ Assembly directive, and specify the source file in the src attribute. + Compile the source file into a seperate assembly, and simply reference to this assembly.

        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