如何设计多个母版页 [英] How to design multiple master pages

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

问题描述



我在该用户名标签和带有登录按钮的文本框中有一个母版页。

如果我输入A作为用户名,它应该渲染另一种风格的母版页如果是另一个母版页。帮助我。

在此先感谢。

解决方案

1.您可以在网络中使用多个母版页应用。例如,假设您正在使用3个母版页。你可以从最简单的设计开始设计 - 应该包含公共部分,然后创建另外两个副本并将它们作为另外两个的起点。



2.您的某些应用程序页面将使用第一个主页面,其他页面将显示第二个主页面等等。



3.从您的登录页面开始用户选择(或应用程序逻辑)您只需重定向就可以获得所需的页面,如果该页面使用的是第二个母版页或第三个母版页,则无法完成。

hi,
I Have one master page in that Username Label and TextBox with Login Button.
If i entered A as username it should render another style of master page.If B another master page.Help Me.
Thanks In Advance.

解决方案

1.You could use multiple master pages in your web application. For example supposing you are using 3 master pages. You could start the design from the most simple of them- that should contains the common part, then create 2 other copy of it and use them as starting point for the other two.

2.Some of your application pages will use the 1st master page others pages the 2nd master page and so on.

3.From your login page based on the user selection (or application logic) you simple redirect for the desired page, and if that page is using 2nd master page or 3rd master page doesn't mater.


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

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