You have two options.
Create base class
You can create a base class that inherits System.Web.UI.Pageand inherits this class on all of your pages:
public class BasePage : System.Web.UI.Page
{
public string ImagePath { get; set; }
}
And then inherit this class on your pages:
public partial class Default2 : BasePage
{
....
}
Create interface
:
public interface Interface1
{
string ImagePath { get; set; }
}
:
public partial class Default2 : System.Web.UI.Page, Interface1
{
public string ImagePath { get; set; }
}
, ( ) .
. .
, , , . .