dotnetnuke

Dotnetnuke Call ajax from a module

丶灬走出姿态 提交于 2019-12-02 13:51:45
问题 I am now trying to build a dnn module using ajax calls. But there is a jquery error stating SyntaxError: Unexpected token < I have tried to work around with ajax "url: " and tried to create a new ascx at the root folder but still showing error 404. My ajax call is as below $.ajax({ url: "NewsManagement.ascx/Add", contentType: "application/json; charset=utf-8", dataType: "json", method: "POST", beforeSend: function () { }, cache: false, data: { title : $('#txt_Title').val(), news_content : $('

Controller not filtering data in Breeze query in DotNetNuke Module

a 夏天 提交于 2019-12-02 08:08:21
问题 I am trying to include the basic Breeze sample in a DotNetNuke module (it works fine in a standalone WebAPI project). To simplify things I remove the client and will just refer to the URL JSON calls I make in the Chrome browser. I can see my metadata and a full list of items, eg: http://www.dnndev.me/DesktopModules/framework/api/breeze/dare/metadata http://www.dnndev.me/DesktopModules/framework/api/breeze/dare/todos however, when I try to filter the list from the URL, it always returns the

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

对着背影说爱祢 提交于 2019-12-02 07:54:59
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 administrator" message. If the user is logged in and have "K-user" role in DNN, allow the user to use the app

Dotnetnuke Call ajax from a module

本秂侑毒 提交于 2019-12-02 06:53:57
I am now trying to build a dnn module using ajax calls. But there is a jquery error stating SyntaxError: Unexpected token < I have tried to work around with ajax "url: " and tried to create a new ascx at the root folder but still showing error 404. My ajax call is as below $.ajax({ url: "NewsManagement.ascx/Add", contentType: "application/json; charset=utf-8", dataType: "json", method: "POST", beforeSend: function () { }, cache: false, data: { title : $('#txt_Title').val(), news_content : $('#txt_Content').val(), image : $('#file_Image').val(), chapter_id : $('#sel_Chapter').val(), is_draft :

__doPostBack is undefined on DotNetNuke website for IE 10

不羁岁月 提交于 2019-12-01 15:59:49
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 reboot the server. That didn't work. I haven't noticed any changes, even though I think the new ie

Installing DotNetNuke : Database Connection Failing

北战南征 提交于 2019-12-01 14:43:32
I am trying to setup DNN on my local machine but having following error. Installing DotNetNuke Upgrade Error: ERROR: Could not connect to database specified in connectionString for SqlDataProvider I have a SQL Server 2014 Express installed with custom login created. I can login and access to database with same credentials using SQL Management Studio. In web.config file, I have following lines for Database connection: <connectionStrings> <add name="SiteSqlServer" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=<dbName>;User ID=<UID>;Password=<PWD>" providerName="System.Data.SqlClient

Installing DotNetNuke : Database Connection Failing

旧巷老猫 提交于 2019-12-01 13:27:50
问题 I am trying to setup DNN on my local machine but having following error. Installing DotNetNuke Upgrade Error: ERROR: Could not connect to database specified in connectionString for SqlDataProvider I have a SQL Server 2014 Express installed with custom login created. I can login and access to database with same credentials using SQL Management Studio. In web.config file, I have following lines for Database connection: <connectionStrings> <add name="SiteSqlServer" connectionString="Data Source=

Terrible DotNetNuke performance

别说谁变了你拦得住时间么 提交于 2019-12-01 03:46:51
问题 I'm involved with a project using DotNetNuke version 05.01.04 Community Edition . We are building our new Intranet using it, but performance is terrible. We have five people adding pages and content to it and every 15-30 seconds they experience a pause of 10 seconds or longer before the system continues and the next screens loads. The server is Windows 2003, 3.8GHz with 1GB of RAM. I'm told by our server admin that the CPU and memory performance don't appear to be the bottleneck. We currently

Prevent jQuery multiple reference

时光怂恿深爱的人放手 提交于 2019-12-01 00:02:37
I am developing DNN modules and I am using jQuery in some modules, I add the jQuery reference to the top of each ascx file, by the way when user add multiple modules to the page it references every time when modules are added, this situation gives some errors, when I remove the reference from the module which is bottom of the other module which both use jQuery, they work well, is there a way to prevent multiple reference the jQuery ? I mean if it is referenced on the page before it won't reference again. Thanks. You could make small script to check if jQuery is present on the page, and only if

How can I rotate(or change) background image using CSS and Javascript

ⅰ亾dé卋堺 提交于 2019-11-30 23:38:57
I have taken a look through stackoverflow for hours now, and I have found a topic similar to what I am trying to achieve JavaScript, How to change the background of a div tag every x seconds When I modify this solution in my script, I get no background image at all so I thought I would come back to the source to get some fresh eyes and thoughts. Here is my setup: HTML <div id="Background"></div> CSS: .background-1 { background: url('Images/mybg1.jpg'); -webkit-transition: background 500ms linear; -moz-transition: background 500ms linear; -o-transition: background 500ms linear; -ms-transition: