Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9224521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:20:33+00:00 2026-06-18T04:20:33+00:00

This might be a silly question, but i have a confusion. Every .aspx page

  • 0

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
    {
    }  
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T04:20:35+00:00Added an answer on June 18, 2026 at 4:20 am

    Page class derives from TemplateControl class;

    public class Page : TemplateControl, IHttpHandler
    

    and TemplateControl class derives from abstract Control class;

    public abstract class TemplateControl : Control, ...
    

    In Control class which Page class derives from there is a virtual property named as Page;

        // Summary:
        //     Gets a reference to the System.Web.UI.Page instance that contains the server
        //     control.
        //
        public virtual Page Page { get; set; }
    

    In the Page class there are properties like IsPostBack, IsValid etc;

        // Summary:
        //     Gets a value that indicates whether the page is being rendered for the first
        //     time or is being loaded in response to a postback.
        //        
        public bool IsPostBack { get; }
    

    Thus,

    Since the aspx page derives from Page class, it also inherits TemplateControl and Control classes. In Control class there is a public property named as Page thus you can access Page property in your class. And Page class has public properties like IsPostback and IsValid etc., so you can use these properties from Page property.

    public class Test : Page
    {
        public Test()
        {
            bool test = this.IsCallback;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This might be a silly question but I am still learning. I have read
This might seems silly question but for me it is annoying. I have installed
This might be a silly question, but I have never found a satisfying way
this might be a silly question, but well. I have the following code that
This might be a bit of a silly question but; If I have two
This might be a silly question but does ARC (automatic reference counting) interact with
This might seem as silly question but I am thinking there might be the
This might sound a silly question but I've really spend hours in trying to
This might look like a silly question to some, but handling the different types
This might be a very silly / stupid question, but, my defence is that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.