This might be a silly question, but i have a confusion.
Every .aspx page inherits System.Web.UI.Page and Page class has some properties Like, IsPostBack, IsValid,IsCrossPagePostBack and many more… to access these property we write Page.IsPostBack or IsPostBack.
Now, Question is , are these property static , if not then how these are accessible in the .apsx file, i have tried to test with a class but not succeeded.
public class clsDemo:System.Web.UI.Page
{
}
Page class derives from
TemplateControlclass;and
TemplateControlclass derives from abstractControlclass;In
Controlclass whichPageclass derives from there is a virtual property named as Page;In the
Pageclass there are properties likeIsPostBack,IsValidetc;Thus,
Since the aspx page derives from
Pageclass, it also inheritsTemplateControlandControlclasses. InControlclass there is a public property named asPagethus you can accessPageproperty in your class. AndPageclass has public properties likeIsPostbackandIsValidetc., so you can use these properties fromPageproperty.