我需要知道如何在asp .net中创建自定义网络表单模板,该模板使我可以选择母版页.[已解决] [英] I need to know how to create a custom webform template in asp .net that allows me to pick a master page [SOLVED]

查看:282
本文介绍了我需要知道如何在asp .net中创建自定义网络表单模板,该模板使我可以选择母版页.[已解决]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Visual Studio 2008,我需要创建一个自定义Web表单,该表单在被选中时的行为类似于Web内容表单,方法是提供一个允许您选择母版页的对话框.我浏览了webform.zip模板并认为我有一个线索,但是尝试不同的组合使我感到困惑,因为它要么不出现,要么不起作用.

另外,当您将项目类型设置为Web并将子项目类型设置为CSharp时,它不会出现,所以我不知道这是否是原因的一部分,因为我希望SupportsMasterPage元素会导致此对话框出现(如果它是一个Web项目,但没有运气). :(

Using Visual Studio 2008, I need to create a custom web form that when picked acts like the web content form, by providing a dialog that lets you pick a master page. I have looked through the webform.zip template and thought I had a clue, but trying different combinations has baffled me as it either doesn''t appear or doesn''t work.

Also when you set the project type to Web and sub project type to CSharp it doesn''t appear, so I don''t know if this part of the cause, because I would of hoped that the SupportsMasterPage element would of caused this dialog to appear, if it is a web item, but no luck. :(

Any ideas?

推荐答案

如果有人遇到这个问题,这就是我从堆栈溢出中得到的答案....

In case anyone has this issue, this is the answer I got from stack overflow....

http://stackoverflow.com/questions/2230564/i-need-to-know-how-to-create-a-custom-webform-template-in-asp-net-that-allows-m[^]


将来,如果您解决了自己的问题,请修改原始消息并更改标题中要包含"[已解决]",因此没有人会打扰它.
In the future, if you solve your own issue, modify your original message and changed the title to include "[SOLVED]" so nobody else will bother with it.


这篇关于我需要知道如何在asp .net中创建自定义网络表单模板,该模板使我可以选择母版页.[已解决]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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