用户控件、Web 部件和 WSPBuilder
任何人都可以向我指出有关如何使用 WSPBuilder 在 MOSS Web 部件中托管用户控件的教程吗?
Can anyone point me to tutorials on how to use WSPBuilder to host a user control in a MOSS webpart?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 WSPBuilder,在您的解决方案中创建“Web 部件功能”;然后按照本教程进行操作:
http://jcapka.blogspot.com/2009/01/i-was-explaining-my-technique-of-using.html
要在 WSPBuilder 生成的 WSP 中很好地打包所有内容,您要做的唯一一件事就是将您的用户控件添加到解决方案中的以下文件夹:
12\TEMPLATE\CONTROLTEMPLATES
(您需要在 VS 中“添加文件夹”以获取“CONTROLTEMPLATES”文件夹;“TEMPLATE”应该已经存在,并且“ FEATURES”文件夹)
让 WSPBuilder 为您构建解决方案,然后进行部署!
With WSPBuilder, create a "Web Part Feature" within your solution; and then follow along with this tutorial:
http://jcapka.blogspot.com/2009/01/i-was-explaining-my-technique-of-using.html
The only thing you'll to do to get everything packaged nicely in WSPBuilder's generated WSP would be to add your usercontrol to the following folder in your solution:
12\TEMPLATE\CONTROLTEMPLATES
(you'll need to "add folder" within VS to get the "CONTROLTEMPLATES" folder; "TEMPLATE" should already be present, with the "FEATURES" folder under it)
Have WSPBuilder build the solution for you, and then deploy!