如何在没有 DAL 的情况下创建简单的 Dotnetnuke 模块
几天来我一直在寻找方法来做到这一点......这真的要了我的命......任何人,请帮忙。
我想在 DNN (VB) 中创建一个新模块......
1. does not use DAL or DAL+
2. has only one view.ascx control
3. It has to be a compiled module
我不需要数据库连接和任何花里胡哨的东西,只需要一种视图控制。我以为这会很简单,但现在谷歌搜索了一天,它看起来很复杂。
任何愿意一步步发布的人...那就太棒了...
I have the development environment already set up with;
1. DNN Starter kit
2. VS 2008
3. SQL server
4. DNN up and running in IIS
5. the project builds successfully
如果有人知道一种方法,我可以使用 VS 2008 中的 DNN 动态模块模板构建模块,然后剥离 DAL 以及所有不必要的层和额外的控件直到我只有一个工作 view.ascx 只打印出“Hello World!”到屏幕上...那就太好了!
非常感谢, 诺曼.
PS:(我还尝试了 adefwebserver.com 上的 hello world 教程 (http ://www.adefwebserver.com/DotNetNukeHELP/DNN5_HelloWorld/Default.htm)- 并且该向导不会像教程中那样显示。)
I've been looking for ways to do this for days now ... and its really killin' me ... anyone, please help.
I want to create a new module in DNN (VB) ... that;
1. does not use DAL or DAL+
2. has only one view.ascx control
3. It has to be a compiled module
I do not need DB connectivity and any bells and whistles just one view control. I thought it would be simple but googling for a day now and it seems very complicated.
Anyone willing to post a step by step ... would be great...
I have the development environment already set up with;
1. DNN Starter kit
2. VS 2008
3. SQL server
4. DNN up and running in IIS
5. the project builds successfully
If anyone knows a way I can build a module using the DNN Dynamic Module Template in VS 2008 and then strip off the DAL and all the unnecessary layers and extra controls until I have only a working view.ascx that just prints out "Hello World!" to the screen ... that would be great !
Thanks a whole bunch,
Norman.
P.S : (I've also tried the hello world tutorial at adefwebserver.com (http://www.adefwebserver.com/DotNetNukeHELP/DNN5_HelloWorld/Default.htm)- and that wizard does'nt show up as it does in the tutorial.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当第一次学习诀窍时,我建议从头开始编写并跳过所有模板,咳咳,垃圾。
以下是基本步骤:
View.ascx:
View.ascx.vb:
When first learning the ropes, I'd suggest writing it from scratch and skipping all of the template, ahem, junk.
Here are the basic steps:
View.ascx:
View.ascx.vb: