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. help to access different cs(class) files using the concept of inheritence

help to access different cs(class) files using the concept of inheritence

Scheduled Pinned Locked Moved ASP.NET
help
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.
  • S Offline
    S Offline
    sarala s
    wrote on last edited by
    #1

    hi friends, i am getting trouble to access more then two class files with the concept of inheritence(drived class)......means.... i having one base class... i have developed one more class want to include drive for the previous class...... and also... kindly give me idea to include..values objects... to acces the diffent page controls... bye, forever friend, sarala.s

    N P 2 Replies Last reply
    0
    • S sarala s

      hi friends, i am getting trouble to access more then two class files with the concept of inheritence(drived class)......means.... i having one base class... i have developed one more class want to include drive for the previous class...... and also... kindly give me idea to include..values objects... to acces the diffent page controls... bye, forever friend, sarala.s

      N Offline
      N Offline
      Nicejith
      wrote on last edited by
      #2

      are both classes in the same namespace? You can group classes into namespaces and include in other classes.

      S 1 Reply Last reply
      0
      • N Nicejith

        are both classes in the same namespace? You can group classes into namespaces and include in other classes.

        S Offline
        S Offline
        sarala s
        wrote on last edited by
        #3

        yes.. exactly i tried as u said...but getting probs.... can u suggest to include .. namespace and include the class?? or any gud website to refer???

        N 1 Reply Last reply
        0
        • S sarala s

          yes.. exactly i tried as u said...but getting probs.... can u suggest to include .. namespace and include the class?? or any gud website to refer???

          N Offline
          N Offline
          Nicejith
          wrote on last edited by
          #4

          I'm not sure whether you are looking for this, but i'm giving you an example first.cs -------- using System; using System.Data; using System.Configuration; using System.Linq; . . . namespace Test { public class Images { public memberFunction(); { //do something } } } ---------- second.cs --------- using System; using System.Data; using System.Configuration; using System.Linq; using Test; // including the namespace . public class DB { private method1() { Images images=new Images(); images.memberFunction(); } } Does it make sense?

          1 Reply Last reply
          0
          • S sarala s

            hi friends, i am getting trouble to access more then two class files with the concept of inheritence(drived class)......means.... i having one base class... i have developed one more class want to include drive for the previous class...... and also... kindly give me idea to include..values objects... to acces the diffent page controls... bye, forever friend, sarala.s

            P Offline
            P Offline
            Paddy Boyd
            wrote on last edited by
            #5

            Are you trying to inherit one asp.net page class from another? This isn't really a great way to go about this, if it is the case - pages should stand alone from each other.

            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