To inherit a class file
-
how to inherit a class file in our aspx page to acess the functionality
-
how to inherit a class file in our aspx page to acess the functionality
Please read the Asp.net basics
himanshu
-
how to inherit a class file in our aspx page to acess the functionality
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
-
how to inherit a class file in our aspx page to acess the functionality
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
-
how to inherit a class file in our aspx page to acess the functionality
.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.