随笔分类 -  dotnetnuke

摘要:<%@ Register TagPrefix="dnn" TagName="MENU" Src="~/DesktopModules/DDRMenu/Menu.ascx" %> 可以显示父类下的子菜单 (dropdownlist), <dnn:MENU ID="bootstrapNav1" MenuS 阅读全文
posted @ 2016-05-03 17:24 王鹏飛 阅读(152) 评论(1) 推荐(0)
摘要:查源码发现登录按钮有参数,点击跳到登录页或者弹窗登录,真正登录后会根据传参的url反回。因为皮肤对像没有相应参数,所以只能去掉参数。我是用js去的,偷个懒吧。如下所示: 阅读全文
posted @ 2016-01-08 18:08 王鹏飛 阅读(135) 评论(0) 推荐(0)
摘要:new DotNetNuke.Common.Lists.ListController().GetListEntryInfo("DataType","Text").EntryID 阅读全文
posted @ 2015-04-01 19:43 王鹏飛 阅读(116) 评论(0) 推荐(0)
摘要:if (DotNetNuke.Entities.Profile.ProfileController.GetPropertyDefinitionByName(this.PortalId, "QQ") == null) { DotNetNuke.Entities.Profile.ProfileContr... 阅读全文
posted @ 2015-04-01 19:42 王鹏飛 阅读(170) 评论(0) 推荐(0)
摘要:public static string GetProfileImage(int userId, int width, int height) { return "~/profilepic.ashx?userid=" + userId.ToString() + "&w=" + width.ToS... 阅读全文
posted @ 2015-03-28 09:48 王鹏飛 阅读(160) 评论(0) 推荐(0)
摘要:public string fileUpload() { if (fuPhoto.PostedFile != null && fuPhoto.PostedFile.ContentLength > 0) { int _ModuleID = (this.Parent.TemplateContro... 阅读全文
posted @ 2015-03-27 19:44 王鹏飛 阅读(280) 评论(0) 推荐(0)
摘要:DotNetNuke.UI.Skins.Skin.AddModuleMessage(this, "关注保存出错.", DotNetNuke.UI.Skins.Controls.ModuleMessage.ModuleMessageType.YellowWarning); 阅读全文
posted @ 2015-02-02 10:37 王鹏飛 阅读(145) 评论(0) 推荐(0)
摘要:皮肤文件夹中必须要有popUpSkin.ascx才会正常加载skin.css文件 阅读全文
posted @ 2015-01-30 14:26 王鹏飛 阅读(118) 评论(0) 推荐(0)
摘要:一般是因为web.config没有配置的原因!只要在下加上就可以啦。 阅读全文
posted @ 2015-01-22 14:14 王鹏飛 阅读(623) 评论(0) 推荐(0)
摘要:1,打开如下图的Model1.Context.cs文件2,找到Base:(ConnString.conn)是我改的。默认生成的是"name=实体连接字符串"Connstring.conn代码如下: public static string conn { get { var dnnConnectS... 阅读全文
posted @ 2015-01-19 15:51 王鹏飛 阅读(130) 评论(0) 推荐(0)
摘要:在dnn下调用第三方dll的微信sdk,代码如下: WebClient wc = new WebClient();wc.Encoding = encoding ?? Encoding.UTF8;wc.DownloadString(url);在调用wc.DownloadString(url);时出现S... 阅读全文
posted @ 2015-01-17 17:24 王鹏飛 阅读(1609) 评论(0) 推荐(0)
摘要:今天用dnn做一个列表里边有一个删除操作,就想做个对话框确定是否删除?正常理解马上想到js的confirm("")函数,但是发现Dnn把这个函数给重写啦,弹出的对话框竟然是英文的。经过一番查找终于找到的对应的解决办法,其实主要是这方面的中文资料太少啦,解决起来很容易。第一种办法是:后台引用 usin... 阅读全文
posted @ 2015-01-16 16:41 王鹏飛 阅读(412) 评论(0) 推荐(0)