Code-Behind Page Inheritance
Now what about code-behind pages? Well, they
are basically exactly the same. See the sample below.
Class CodeBehind :
= "Hello there"
This is part of the same namespace that you
created before. If you run it on an ASPX page like
Now, if you look at the demo, you will see
that there is a problem. The page still shows - "This is a page
template sample" on it. This is because of the
page execution order.