如何确定哪些子页面被从母版页显示? [英] How to determine which Child Page is being displayed from Master Page?

查看:123
本文介绍了如何确定哪些子页面被从母版页显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的母版页上写code和我需要知道正在显示它的孩子(内容)页面。我怎样才能做到这一点编程?

I'm writing code on the master page, and I need to know which child (content) page is being displayed. How can I do this programmatically?

推荐答案

这听起来像一个坏主意开始。大师的想法是,它不应该在乎有没有什么页面,因为这是所有普通code的每一页。

This sounds like a bad idea to start with. The idea of the master is that it shouldn't care what page is there as this is all common code for each page.

这篇关于如何确定哪些子页面被从母版页显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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