dotnetnuke

DNN: Using multiple web user controls in one module and showing different controls in different pages

∥☆過路亽.° 提交于 2019-12-04 11:04:27
问题 I'm a DotNetNuke newbie. Please be gentle. I'm using the "DotNetNuke 6 Compiled Module" template to build my module. I already have View.ascx control in the project and have added another control called test.ascx. My question is: how do I show different different views in different pages I add the module to. (if that is possible at all) e.g Show View.ascx on say the default.aspx page and then on the default2.aspx page show the test.ascx user control? If this is not possible does it mean I

How to use asynchronous (non-blocking) javascript with DNN Client Resource Management

余生长醉 提交于 2019-12-04 10:49:47
I use DNN's Client Resource Management for loading javascript and css into a theme (skin) this way I can take advantage of minification and composite files but I need them to be asynchronous (non-blocking). How can this be done? So far as I know, there is not a way to use the async (or defer ) attribute on the <script> tag that is rendered by the Client Resource Management Framework. You can add an attribute to the <script> (or <link> ) tag rendered by the Client Resource Management Framework. Add the attribute HtmlAttributesAsString to the control, and then separate the attribute name and

Migrate an existing DotNetNuke portal to windows azure

荒凉一梦 提交于 2019-12-04 09:03:15
I am currently moving from my shared host to azure and I have been migrating my asp.net applications to azure/sql azure. For the mvc3/4 sites, I had to change their membership providers to the Universal Membership provider in order to get them to sit on SQL Azure. Now I have to do the dnn sites and I can't quite fathom what strategy to use. I have tried generating the database script with the For SQL Azure option but I get a tonne of errors like Deprecated feature 'String literals as column aliases' is not supported in this version of SQL Server. Also, I don't have the option of installing a

Find all CSS styles used on website

半世苍凉 提交于 2019-12-04 08:07:38
问题 I have a DotNetNuke skin that has a single CSS file over 3,500 lines long. It contains styles for YUI, Telerik, Cluetip as well as the actual customisation of the site. The old developers just kept adding styles and never cleaned up the old unused ones. I want to cleanup the file and get it to a more managable size. I first thought about scanning through the code base but this is 5,500 files with a mixture of CSS applied in the .aspx, .ascx and .cs files as well as jQuery aplying styles

Using DNN authentication and authorization info from another ASP.NET app

雨燕双飞 提交于 2019-12-04 06:10:06
问题 I have an ASP.NET web application "K" that has its own authentication and authorization built on SimpleMembershipProvider. Now I want to set up a web site that has application "K" and DNN, in a way that the user will log in to DNN app and I have a button within DNN app that will jump to app "K". Within "K", I would like to implement these behaviors. If the user is not logged in, go back to DNN's home page. If the user is logged in but does not have a "K-user" role in DNN, show "contact

DNN Containers

寵の児 提交于 2019-12-04 04:24:30
This might be a general question, but I can't seem to figure it out. What are containers in DNN? Skins are essentially a layout plus a colour scheme for the whole portal. So are containers the skin for desktopmodules? Sorry if this question is novice. I am not confident in DNN yet, and am reading the doco. However i need this answer quite quickly. Cheers. Containers allow you to add style and markup to any module independently of the page skin or the particular module. The layout goes like this: Default.aspx Skin (.ascx control, either the Portal default or selected on the given tab) - this

__doPostBack is undefined on DotNetNuke website for IE 10

拥有回忆 提交于 2019-12-04 03:09:56
问题 I have a DotNetNuke site, and today a customer called in and said it wasn't working on IE 10. Specifically the login and register links weren't working, but they do in compatibility mode. I took a look on our test windows 8 machine and saw that it was failing because __doPostBack was undefined. I've been searching for a fix for the last 6ish hours, and what I've been able to find is that apparently the IE10 user agent is covered in the ie.browser file and that I should install this hotfix and

Why does ASP.NET auto-generated .designer code have the incorrect type?

爷,独闯天下 提交于 2019-12-03 21:19:52
问题 I'm working on a hack to the DotNetNuke Events module. I've got the source set up and it built A-OK without modifications. However, when I change the EventMonth.ascx file, Visual Studio updates the .designer.vb file associated with it... and declares two objects with the wrong type! It looks like this: Protected WithEvents EventIcons As Global.System.Web.UI.UserControl And should look like this: Protected WithEvents EventIcons As Global.DotNetNuke.Modules.Events.EventIcons Obviously, this is

Looking for a HTTPHandler to modify pages on the fly to point to a CDN

≡放荡痞女 提交于 2019-12-03 20:04:59
问题 What I'm trying to do is create (or perhaps one already exists) a HTTPHandler that will filter the HTML generated ASP.NET to use the content delivery network (CDN). For example, I want to rewrite references such as this: /Portals/_default/default.css to http://cdn.example.com/Portals/_default/default.css I'm perfectly happy using RegEx to match the initial strings. Such a regex patterns might be: href=['"](/Portals/.+\.css) or src=['"](/Portals/.+\.(css|gif|jpg|jpeg)) This is a dotnetnuke

Setting up separate ASP.NET app with DotNetNuke

落花浮王杯 提交于 2019-12-03 17:16:56
I've got DotNetNuke (v5.1.4 Community Edition) setup on a Windows Server 2008 64-bit system (using SQL Server 2008 64-bit for the backend database), and I want to reference a separate ASP.NET application from it. I plan to display the ASP.NET application via an IFrame module on the DNN site. I'd like the ASP.NET application to recognize the user that is currently logged into the DNN site. I'm trying to do this by creating a web application (in IIS) under the DNN web site on the web server. That is, the ASP.NET web application is a child of the DNN web site (we're using IIS7). When I do this