ASP.net 2.0 Tips

1. Access Master page within Content Page

在ASP 的content page aspx 中加入 <% @MasterType virtualPath="~/MasterPage.master">

 

2. Dynamic change master file in the content page

在content page的preinit 方法中加入改变MasterPageFile属性即可

posted @ 2008-01-15 11:11  richardzeng  阅读(164)  评论(0编辑  收藏  举报