我制作了一个母版页,->从该母版页制作了一个内容页,->修改了母版页(添加了内容、占位符和其他内容) ->我可以更新内容页并在母版页中反映这些更改吗?BTY:我使用的是VS2010
发布于 2012-12-31 22:27:12
我所需要的就是进入设计视图并点击Create Custom Content。
发布于 2012-01-29 17:28:17
试试这个:
假设页面类名为MyPage,在master.cs中编写如下代码:
var page = this.Page as MyPage;
if (page != null)
{
page.GoCrazy(); // assuming GoCrazy is a public method over there
}https://stackoverflow.com/questions/9052159
复制相似问题