you can use by findcontrol() method. On Tue, Nov 22, 2011 at 7:24 AM, praveen singh <[email protected]>wrote:
> you should check contentplaceholder id are same for both master pages and > no of contentplaceholder should be same there > > > On Mon, Nov 21, 2011 at 7:28 PM, P.Bixam <[email protected]> wrote: > >> >> http://mr-ponna.com/Question/413/Can-we-set-Master-page-dynamically-at-runtime-/ >> >> >> http://www.asp.net/master-pages/tutorials/specifying-the-master-page-programmatically-vb >> * >> * >> On Sat, Nov 19, 2011 at 10:47 PM, Kinjal Joshi <[email protected]>wrote: >> >>> Can i change master page of content page at run time? how? >>> >>> i tried on page preinit event >>> >>> if (a=b) >>> >>> page.masterpagefile="a1.master"; >>> >>> else >>> page.masterpagefile="a2.master"; >>> >>> bt this give me error.bcoz of contentplace holder id >>> >>> pls..give me solution. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "DotNetDevelopment, VB.NET <http://vb.net/>, C# .NET, >>> ADO.NET<http://ado.net/>, >>> ASP.NET <http://asp.net/>, XML, XML >>> Web Services,.NET Remoting" group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en >>> or visit the group website at http://megasolutions.net >>> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "DotNetDevelopment, VB.NET <http://vb.net/>, C# .NET, >> ADO.NET<http://ado.net/>, >> ASP.NET <http://asp.net/>, XML, XML >> Web Services,.NET Remoting" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en >> or visit the group website at http://megasolutions.net >> > > -- > You received this message because you are subscribed to the Google > Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML > Web Services,.NET Remoting" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en > or visit the group website at http://megasolutions.net > -- Ravindra kumar delhi -- You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en or visit the group website at http://megasolutions.net
