摘要: 在这里,我首先简单的介绍一下Oracle11g的五大特点,接着详细介绍其自我调整。
阅读全文
posted @
2008-09-05 12:47 花纯春 阅读(12) |
评论 (0) |
编辑
摘要: 我下了带源码的crossarticle,看上在的图标似乎是你作的,而我先装crossarticle安装到dnn4.8.4上面后,发现缩略图的最大宽度设置无效,而且当设置不在正文中显示图片后,点击标题直接出错。
我想改一下,可是将源码盖到desktopmodules\crossarticle后,用附加到进程,并将输入路径转为dnn\bin。可没有反应,将dnn\bin下的dll删除后,也没有生成。
阅读全文
posted @
2008-08-28 00:06 花纯春 阅读(66) |
评论 (0) |
编辑
为了学习DNN,我最近一直在看DNN团队的相关博客和个人网站,我有很多问题,也是通过在DNN官方站的论坛上得到答案的,当然,有很多让asp.net和DNN方面的资深人士不屑的初级得不能再初级的,问题。不过,还是感谢他们能回答,至少是提示,也非常感谢这些愿意将自己的知识分享给新人的IT人。在此,我也将我的一些学习过程写出来,希望对更新的新人能有一点帮助。我始终相信作IT的,特别是编程这块,需要大家(不论国外,国内)将自己的知识分享出来,进步才够快。
好的,废话不说了。
这是Michael的教程,可以说是step by step的。如果还不会DNN module开发的朋友,请先看这篇文章,也是很初级的,同样step by step,相信自己是最棒的。
http://www.codeproject.com/KB/applications/LCTDNNModDev.aspx
http://www.adefwebserver.com/DotNetNukeHELP/DNNTree/
我照着作下来,有这几点需要注意的,我用的是C#。
遇到的问题是:objNode.ImageIndex = eImageType.Folder
vs2005对此没有提示,说明并没有在上下文定义,或者引用相关的类或者名称空间。首先,我是在vs2005里用calss view和object view查找,没有! 接着在DNN Q群里问高手,结果得到提示,在filemanager.ascx.vb中找到了enum的定义,不过,还是引用不了。再后来google一通,还是未果。于是,我还向Michael去了mail,并在论坛上发了贴。结果,他们都给了我认真的回复,而当我作完这个练习后,我发现,在这段代码最后,有对eImageType.Folder
的定义。

Public Enum eImageTypeEnum eImageType
Folder
Page
End Enum
很是惭愧!
建议遇到问题,按上述流程未解决的,请在相关的专业论坛发贴,实在不行,再向作者去mail。因为就在昨晚我看Michael的其他教程时,看到醒目的提示,请勿来mail,有问题到论坛。的确理解,他的教程读者比牛毛还多,都去mail,还不累死,哪儿还有精力来写更多的教程呢。如果遇到我这样的问题,还不给郁闷死。
第2个问题,就是编译时,提示error,意料之中,从VB到C#,一般都有这样的问题。
在这儿推荐一个好站,http://labs.developerfusion.co.uk/convert/vb-to-csharp.aspx
它可以将vb c#互转代码。
当然,我是手工转的,因为代码量较少,没必要用工具,就当对自己的提高吧。
objTreeNode = objParent.TreeNodes(index)
这个index外面的圆括号,应该换成[],知道吧。不知道原因的,请在评论里回复。
另外,
Dim objTreeNode As TreeNode
转成C#
TreeNode objTreeNode;
后,可能会出错,如果你在using名称空间时,同时引用了using System.Web.UI.WebControls;
和using DotNetNuke.UI.WebControls;的话。
因为在这里,我们用的TreeNode是DotNetNuke.UI.WebControls;的,而非System.
所以,要么请您明确写明,写全,要么,将using System.Web.UI.WebControls;的WebControls去掉,因为这项目里正好用不着System的WebControls.今后如果遇到同一项目里需要用到这两个WebControls的话,请用前者,写全,写明。
第3个问题:
编译通过了,在IE里,除了图标显示为红叉外,其他都能正常使用,达到预期效果。
我看了图标的Property,显示的是http://localhost/images/folder.gif 而在我的系统里正确的应该在images前面加上dnn/
在vs2005中,查看DNNTree控件的属性,看到systemimagespath居然自作聪明的给我加上了images,请将其改为dnn(如果你也用的是DNN作为虚拟目录名)。
相应的
代码文件里也不需要像Michael那样加上"http://www.cnblogs.com/../"
而是
DNNTree1.ImageList.Add("images/folder.gif");
DNNTree1.ImageList.Add("images/file.gif");
一切OK,如果您还遇到什么新的问题,欢迎您在评论(http://blog.csdn.net/metababy)里,提出,这样,今后其他人搜到这文章,就不会出现同样的疑惑了。
posted @
2008-07-15 13:30 花纯春 阅读(110) |
评论 (0) |
编辑
从国外某著名DNN 知情人士
Nina's Blog上看到一些有用的文章,在此记录一下,也为国内DNN,问题搜索,出一点力。一如继往的,没有翻译。得省下时间作更有作的事。
请原谅。
Ugrading DotNetNuke 4.5.5 > 4.8
升级DNN版本,从4.5.5升到4.8 全部详细过程介绍,并有截图。
Can DotNetNuke be used to run a business?
还没有细看,不过,他的插图很有意思,开始还感叹,老外也有这么差的房子,可是经过一番修饰后,那效果,真漂亮。口水ing
New Free DotNetNuke Skin - XDNewBlue
这个不用介绍了吧,我喜欢,这类型的skin,已经下了。还没装。
DNN, SEO and all that 'search engine friendly' talk
关于用DNN作SEO的深入介绍,很好,很强大。
Using names instead of numbers in your portals
使用英文名称代替数字来为portal命名。
posted @
2008-07-07 15:45 花纯春 阅读(183) |
评论 (0) |
编辑
摘要: 参与网络与现实结合的科幻游戏 诺基亚N78“连城决”(大型城市接力探索挑战赛) 获胜者将得到7万8现金和1部N78手机
诺基亚N78“连城决”活动,以热爱科技,喜欢时尚的人们参与,围绕N78手机的“科幻”功能展开,我个人觉得,能参与这样的活动本身就很cool,很有成就感笔满足感。而且, 还有机会赢取大奖,呵呵。不参与,睡不着觉啊。
阅读全文
posted @
2008-07-04 16:10 花纯春 阅读(29) |
评论 (0) |
编辑
关于DNN的性能增强,转自http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryID/486/Default.aspx
作者:Charles Nurse (DNN核心团队成员)
Many people have commented that the dotnetnuke.com site is a little slower with the recent upgrade to 4.3.1 (especially for Login).
If your site has a lot of users, you are probably getting the same "poor" performance. (Note - the problem is not confined to 4.3.1 - it will also be a problem with 3.3.1, as it is due to one of the new User features).
However, there is a simple solution, and here it is.
1. Log in as admin or host
2. Go to the "User Accounts" module (on the Admin menu).
3. Select the "User Settings" module action
4. Click Update to save the Settings.
Savvy users will have by now figured out the problem - The User Settings, which are implemented as Module Settings in the Database do not exist (are null). Loading the User Settings page loads the default values and clicking "Update" persists them to the database.
Normally, when custom Module Settings are not "set" this does not affect performance but in this case there is a very expensive query that is run when retrieving the default settings. This query will run every time a setting is needed, because, the GetSetting uses a fallback approach:
a) - try fetching the settings from the Cache
b) - try fetching the settings from the Database
c) - load the default settings (which calls the expensive query GetUserCountByPortal)
d) - get the setting from the collection of settings
On this site, when logging in, 3 different settings are needed, so the query is made 3 times - at a cost of about 800ms each (due to 300,000 users), hence the performance issues.
Now that I have carried out the procedure above (1-4) on this site, the default settings have been persisted to the Database, and the caching mechanism can work - Login is much faster.
A fix will be added to the next version, so that default values are automaticaly saved to the database on upgrade (or first access).
posted @
2008-07-04 10:19 花纯春 阅读(43) |
评论 (2) |
编辑