About Page

A

Amelyan

I need some help to confirm my theory!
I think I discovered something new for myself about behavior
System.Web.UI.Page.

THEORY: Every time I change control on my WebForm1 page that results in
PostBack, it is handled by a new instance of WebForm1 class, i.e. a new
instance of WebForm1 class is created every time. In general, any GET or
POST to WebForm1 will get its own new instance of WebForm1.

public class WebForm1 : System.Web.UI.Page
{
}

Is my theory correct? I wasn't able to find confirmation or contradiction
to my theory in my asp.net books.

Thank you,
-Amelyan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,785
Messages
2,569,624
Members
45,318
Latest member
LuisWestma

Latest Threads

Top