lets say i have 2 master page;
master1.master contains contentplaceholder1
master2.master contains contentplaceholder1 and contentplaceholder2
default.aspx contains contentplacehoder1 and contentplaceholder2
if my masterpage is set to master2.master everything works fine but how do i prevent an error when masterpagefile is set to master1.master.
since in my website the masterpage is set dynamically i would like to prevent the error sayin cannot find contentplaceholder 2 when my .aspx file's masterpagefile=master1.master
I would basically like to have a default contentplaceholder, if it doesnt find that specified contentplaceholder it would insert those items in the defaul contentplaceholder.