如何更改母版页动态 [英] How to change the Master Page dynamically

查看:89
本文介绍了如何更改母版页动态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要动态地分配一个母版页纯aspx文件,任何人都可以告诉我,如何做到这一点?

I want to assign one master page dynamically for a pure aspx file, Anybody can tell me, how to do this?

推荐答案

我离开的ContentPlaceHolder在其添加..其实,我试图不使用的ContentPlaceHolder。现在分配的母版页,我意识到,用于至少一个应该的ContentPlaceHolder在那里暂时,尽管我们会动态变化,母版页...

I Left the ContentPlaceholder to add on it.. Actually , I tried to assign master page without using ContentPlaceHolder.. Now, I realised that, atleast one ContentPlaceholder should be there temporarily, even though we will change the master page dynamically...

这篇关于如何更改母版页动态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆