Visual Studio 2008 SP1 - 页面的设计视图仅显示母版页
我正在创建一个使用母版页的应用程序。
但是,当我转到页面的设计视图(用于自动创建事件或从工具箱拖/放任何新控件,我不想输入所有内容)时,设计视图仅显示母版页!页面控件完全被忽略!
图片: http://img4.imageshack.us/img4/7980/masterissue.jpg
有人知道如何解决这个问题吗?
I'm creating a app that uses a Master Page.
But when i go to Design View of the page (for creating the events automatically or for drag/drop any new control from toolbox, I don't want to type everything) the design view only shows the master page! the page controls are complete ignored!
the image: http://img4.imageshack.us/img4/7980/masterissue.jpg
Does anybody know how to solve this issue??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是否使用嵌套母版页?
如果设置MasterPageFile=""(不是删除该属性,而是将其设置为空字符串),您可以在设计视图中看到内容页面吗?
请参阅此处的“嵌套母版页”部分:http://odetocode.com/code/450.aspx< /a>
Is it using a nested master page?
If you set the MasterPageFile="" (not remove the attribute, but set it to an empty string), can you then see the content page in Design View?
See the "Nesting Master Pages" section here: http://odetocode.com/code/450.aspx
我找到了...
问题出在 contentPaceHolder“Body”上,里面有 2 个其他 contentPlaceHolders,我想我正在考虑做嵌套母版页,但忘记在单独的文件夹中做!
I found it...
the problem is at the contentPaceHolder "Body" that has 2 other contentPlaceHolders inside, I think that I was thinking on doing nested master pages but forgot to do it in separate folders!