Users Pricing

forum

Home Forums How to abstract a property in ASP.NET pages – MindStick

How to abstract a property in ASP.NET pages

Anonymous User 2209 05 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; }

}


2 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md