forum

Home / DeveloperSection / Forums / How to abstract a property in ASP.NET pages

How to abstract a property in ASP.NET pages

Anonymous User173105-Dec-2014

I am using aspx forms. What we do is that we declare property like for every form. Code is at the end

 

So I was thinking that if we could have a base class that have all the stuff like this but as the form already inherit the Page class we don't have multiple inheritance in C# so here can we use interface to achieve this I am new to oops please let me know it is possible or not.

 

public partial class Default2 : System.Web.UI.Page

{

    public string ImagePath { get; set; }

}


Updated on 06-Dec-2014
I am a content writter !

Can you answer this question?


Answer

2 Answers

Liked By