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. To inherit a class file

To inherit a class file

Scheduled Pinned Locked Moved ASP.NET
tutorial
5 Posts 5 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.
  • A Offline
    A Offline
    anbusenthil
    wrote on last edited by
    #1

    how to inherit a class file in our aspx page to acess the functionality

    H B A M 4 Replies Last reply
    0
    • A anbusenthil

      how to inherit a class file in our aspx page to acess the functionality

      H Offline
      H Offline
      himanshu2561
      wrote on last edited by
      #2

      Please read the Asp.net basics

      himanshu

      1 Reply Last reply
      0
      • A anbusenthil

        how to inherit a class file in our aspx page to acess the functionality

        B Offline
        B Offline
        Baran M
        wrote on last edited by
        #3

        Which functionality ? TO inherit page class, use like this YourClass:Page. Do you need to add more class to be inherited. It is not possible in c#. use interface for that.

        You are best person who knows about your problem. ------------------------------------------------- More pain more gain

        1 Reply Last reply
        0
        • A anbusenthil

          how to inherit a class file in our aspx page to acess the functionality

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

          anbusenthil wrote:

          how to inherit a class file in our aspx page to acess the functionality

          All the question that you have asked in this forums are very basic. And it seems you don't have any idea that what you are doing. So, My suggestion to you to that please Buy some Good beginner's Book and start reading. After doing the basic from books read some article from net. Then try to do your work. It will help you in Long Run.

          cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

          1 Reply Last reply
          0
          • A anbusenthil

            how to inherit a class file in our aspx page to acess the functionality

            M Offline
            M Offline
            Manas Bhardwaj
            wrote on last edited by
            #5

            .Net does not allow multiple inheritance. As all the web forms are already inherited from a Page class, it cannot be directly done. Another suggestion could be to create a Class(lets say BasePageClass) and inherit it from Page. Put the functionality which you currently have in your class in the BasePageClass. Now in your aspx page, use the BasePageClass to inherit instead of Page.

            Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

            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