callin Master page in content page

Posted by Fundaravi under ASP.NET on 4/13/2012 | Points: 10 | Views : 928 | Status : [Member] | Replies : 5
2Can we call master page property in content page?

Ravindra


Responses

Posted by: Sakthi.Singaravel on: 4/13/2012 [Member] Silver | Points: 25

Up
0
Down
void Page_PreInit(Object sender, EventArgs e)

{
this.MasterPageFile = "~/NewMaster.master";
}


for reference..

http://msdn.microsoft.com/en-us/library/c8y19k6h.aspx

Regards,
Singaravel M

Fundaravi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hariinakoti on: 4/14/2012 [Member] Starter | Points: 25

Up
0
Down
ya, itz right singaravel.



Thanks & Regards
Hari

Fundaravi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hariinakoti on: 4/14/2012 [Member] Starter | Points: 25

Up
0
Down

read this below link.it is very useful to u..
http://www.codeproject.com/Articles/36055/Interaction-Between-Content-Page-and-Master-Page

Thanks & Regards
Hari

Fundaravi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sakthi.Singaravel on: 4/14/2012 [Member] Silver | Points: 25

Up
0
Down
@ hari
thank u

Regards,
Singaravel M

Fundaravi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ajay.Kalol on: 4/14/2012 [Member] Starter | Points: 25

Up
0
Down
If you have to use Master Page property then you have to provide " <%@ MasterType VirtualPath="" %> " directive in your .aspx Page,Then You are able to use master Page Properties..


Hope this will help,

if not comment me Back.

Ajay
ajaypatelfromsanthal.blogspot.in

Fundaravi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response