HTML:
<td align="center" width="100%">
<a class="Forum_ib_moderate" href="Default.aspx" title="Moderate"></a>
<a class="Forum_ib_admin" href="Default.aspx" title="Admin"></a>
...
Run Code Online (Sandbox Code Playgroud)
CSS:
A.Forum_ib_moderate:link, A.Forum_ib_moderate:visited, A.Forum_ib_moderate:active, A.Forum_ib_moderate:hover
{
background-image: url(images/ib_moderate.png);
background-repeat: no-repeat;
background-position: center;
padding-left: 2px;
padding-right: 2px;
padding-top: 8px;
padding-bottom: 0px;
height: 35px;
width: 35px;
display:table-cell;
}
A.Forum_ib_admin:hover
{
background-image: url(images/ib_admin_hover.png);
}
Run Code Online (Sandbox Code Playgroud)
菜单在IE中看起来很好,在Firefox中显示垂直.如果我关闭"显示:table-cell;" 在Firebug中的样式,然后将其重新打开,它修复了该菜单节点.
替代文字http://i39.tinypic.com/29as4k7.jpg
有任何想法吗?
ps:我不想搞乱菜单本身,因为它是DNN论坛4.4.3的一部分.我宁愿修复CSS以使其正确显示.
我正在尝试从另一个方法返回的IDataReader中填充一个集合...由于某种原因,它不断抛出"为此对象定义的无参数构造函数".此行的错误:
List<string> names = CBO.FillCollection<string>(DataProvider.Instance().ExecuteReader("getNames", new SqlParameter("UserId", 1)));
Run Code Online (Sandbox Code Playgroud)
我已经尝试分离出参数,所以事情会分开初始化,直到我有了这个:
List<string> names = CBO.FillCollection<string>(nameDataReader);
Run Code Online (Sandbox Code Playgroud)
我在同一条线上仍然收到错误.
有任何想法吗?
我在Windows Server 2008 64位系统(后端数据库使用SQL Server 2008 64位)上安装了DotNetNuke(v5.1.4社区版),我想从中引用一个单独的ASP.NET应用程序。我计划通过DNN站点上的IFrame模块显示ASP.NET应用程序。我希望ASP.NET应用程序能够识别当前登录到DNN站点的用户。我正在尝试通过在Web服务器上的DNN网站下创建一个Web应用程序(在IIS中)来实现此目的。也就是说,ASP.NET Web应用程序是DNN网站的子级(我们正在使用IIS7)。
当我执行此操作,然后导航到ASP.NET站点时,出现以下错误消息:
“无法加载文件或程序集'DotNetNuke.HttpModules'或其依赖项之一。”
基于本文。我将<clear />标记添加到ASP.NET应用程序web.config的httpModules部分。
现在,我收到此错误消息:
“无法加载文件或程序集'DotNetNuke'或其依赖项之一”
此外,调试信息还提到了有关DotNetNuke.UI.WebControls.CaptchaHandler的信息,但我认为这不是问题的根源。也就是说,CaptchaHandler是httpHandlers部分中的第一项只是一个巧合。
我尝试将<clear />标记添加到httpHandlers部分,但收到以下错误消息:
“未找到请求类型'GET'的http处理程序”
关于可能发生的事情以及如何解决的任何想法?
我使用dotnetnuke版本5.4.我想在使用条款和隐私声明后显示一个链接(在底部).
只有在用户登录后才能显示此链接.有没有办法执行此操作?我知道如何添加skin.ascx文件的链接,但我不知道如何识别用户是否登录.
我正在研究DNN 6.0网站上的一般问题:一个DNN模块中的无法处理的异常会影响处理页面上的所有其他模块.例:
假设我有DNN页面,上面有两个模块.Module1具有onclick事件处理程序抛出异常的按钮.Module2只有一些标签文字.
因此,当用户按下Module1.button时,我们看到错误而不是Module1,而Module2不可见.
是否有可能在一个地方捕获所有这些Module1异常并让DNN处理页面上的其他模块?(我知道最简单/最简单的方法是在button.onclick中编写try/catch块,但是我不能在我们创建的所有模块中实现这样的方法,因为它需要很长时间.)
我需要更改DotNetNuke网站的标题,我有管理员访问但不能访问主机.我也可以通过FTP访问网站的文件目录.
我可以更改索引页面的标题吗?
我正在创建一个DNN模块,并有一个基于此的工作模块:http://www.subodh.com/Projects/DNN-Module.
当我在DNN 5.6.2安装上安装它时,一切正常,除了.ascx文件不复制.如果我手动复制.ascx文件,该模块工作正常.
我的.dnn文件看起来像这样:
...
<moduleDefinitions>
<moduleDefinition>
<friendlyName>SignUp.Control1</friendlyName>
<defaultCacheTime>0</defaultCacheTime>
<moduleControls>
<moduleControl>
<controlKey />
<controlSrc>Control1.ascx/Control1.ascx</controlSrc>
<supportsPartialRendering>True</supportsPartialRendering>
<controlTitle>Control1</controlTitle>
<controlType>View</controlType>
<iconFile />
<helpUrl />
<viewOrder>0</viewOrder>
</moduleControl>
...
</moduleControls>
</moduleDefinition>
</moduleDefinitions>
...
Run Code Online (Sandbox Code Playgroud)
具体来说,Control1.ascx不会被复制到DesktopModules/SignUp目录.
我没有收到错误.以下是DNN在安装模块时所说的相关部分.我在安装时没有错误.
...
Info Component installed successfully - Script
Info Starting Installation - Module
Info Module registered successfully - SignUp
Info Component installed successfully - Module
Info Starting Installation - Assembly
...
Run Code Online (Sandbox Code Playgroud)
任何人都可以告诉我为什么控件没有复制到适当的目录?
谢谢.
我正在构建dnn模块,允许登录用户以其他用户身份登录.
但我这里有一些有线问题.
这是我注销当前用户并以另一个用户身份登录的方式:
UserInfo userInfo = UserController.GetUserById(portalId, userId);
if (userInfo != null)
{
DataCache.ClearUserCache(this.PortalSettings.PortalId, Context.User.Identity.Name);
if (Session["super_userId"] == null)
{
Session["super_userId"] = this.UserId;
Session["super_username"] = this.UserInfo.Username;
}
HttpCookie impersonatorCookie = new HttpCookie("cookieName");
impersonatorCookie.Expires = DateTime.Now.AddHours(1);
Response.Cookies.Add(impersonatorCookie);
Response.Cookies["cookieName"]["super_userId"] = this.UserId.ToString();
Response.Cookies["cookieName"]["super_username"] = this.UserInfo.Username;
PortalSecurity objPortalSecurity = new PortalSecurity();
objPortalSecurity.SignOut();
UserController.UserLogin(portalId, userInfo, this.PortalSettings.PortalName, Request.UserHostAddress, false);
Response.Redirect(Request.RawUrl, true);
}
Run Code Online (Sandbox Code Playgroud)
在PageLoad()我尝试从这个cookie读取值但它没有读取任何东西:
try
{
string super_userId = Request.Cookies["cookieName"]["super_userId"];
string super_username = Request.Cookies["cookieName"]["super_username"];
if (!String.IsNullOrEmpty(super_userId))
{
this.Visible = true;
this.lblSuperUsername.Text = Session["super_username"].ToString(); …Run Code Online (Sandbox Code Playgroud) 在DotNetNuke 7之前,可以使用以下方法获取用户所属角色的列表:
DotNetNuke.Security.Roles.RoleController rc = new DotNetNuke.Security.Roles.RoleController();
foreach (Entities.Users.UserRoleInfo roleInfo in rc.GetUserRoles(portalID, userID))
{
string roleName = roleInfo.RoleName;
}
Run Code Online (Sandbox Code Playgroud)
但是,从DNN7开始,该GetUserRoles函数已被弃用.
这个功能还有什么选择?
使用dotnetnuke 7.0社区版.
我知道如何将脚本/ css添加到皮肤文件,但我想将它们包含在整个系统的标记中.
查看源代码,我看到DNN将某个脚本/ css附加了?cdv = NUMBER,它引用了内容资源管理版本.我知道如何增加这个数字.
我想在我的所有页面上使用jquery插件,我想将它包含在标题中并使用版本号.
我该如何实现这一目标?
dotnetnuke ×10
c# ×3
asp.net ×1
css ×1
dataprovider ×1
dotnetnuke-5 ×1
firefox ×1
idatareader ×1
jquery ×1
module ×1
package ×1
web-config ×1