Buy Questpond's video subscriptions on
huge discount
.
Online: 11281
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
ASP.NET
>
Loading ...
What is relation between MasterPage and content page in term of OOPS?
Posted by
Nik.d
under
ASP.NET
on 11/12/2009 | Views : 4600 | Status :
[Member]
| Replies : 3
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
We have mater page and content in ASP.Net.
What kind of relation they share in the term of Oops?
Can any one describe it in details?
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Virendradugar
on: 11/13/2009
[Member]
[MVP]
Silver
0
Master page works as a base class for the content page. So in terms of oops it's inheritance.
You can find more details about master page from below link
http://www.w3schools.com/aspnet/aspnet_masterpages.asp
Thanks,
Virendra Dugar
Nik.d
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Nik.d
on: 11/13/2009
[Member]
Starter
0
Hi Virendra ,
Thanks for the quick reply.
But I am not agree with your answer.
As you said "inheritance" is there for mater page and content page.
If there is inheritance then page load of master page should called first but page load of content page is called first. As per OOP we can not change the base class at run time but we can change the mater page of content page at runtime.
Please let me know if I am missing something.
Hoping for accurate answer :)
Thanks,
Nikhil
Nik.d
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Virendradugar
on: 11/13/2009
[Member]
[MVP]
Silver
0
Hi Nikhil,
Inheritance does not mean that always base class method will be called first. You have created instance of content page,so it is always going to call content page method first.
Yes, I agree with you regarding changing base class at run time. This is possible with Master Pages.
Again, It's not completely inheritance relation between Master Page & Content Page but it has some of the functionality of inheritance.
Hope this helps.
Thanks,
Virendra Dugar
Nik.d
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
How to get the exact property name while getting error
(0)
PDB file is not showing Line Number in dot net application hosted on server
(0)
Both Strings morethan 5 letters in length end of the words one vowel and one consonent is different
(0)
how to check Any adjacent letters transposed between two strings(ex: JOHN, JHON)
(1)
can't receive data after success login ?
(1)
Implement Multi-Tenant in Azure Logic Apps
(0)
Why ASP.Net Core 7.0 Web API showing as Connection refused?
(0)
Iterating over columns of dataframe and print as rows in Python Django
(0)
More ...