dotnetnuke

What is the best way to include jQuery in DotNetNuke 4.8.x?

这一生的挚爱 提交于 2020-02-25 08:58:49
问题 I'm using DotNetNuke 4.8.x and want to utilize jQuery. Could anyone possibly suggest me on what is the best way to integrate jQuery into DNN? I won't be able to upgrade DNN version to 5 which has built-in support for jQuery. Your advice would be much appreciated. 回答1: To avoid loading jQuery multiple times, it might be best to use a client-side script, like the one given here. In the server-side, you can load jQuery library in the page header during the Page.Init or Page.Load event: Protected

What is the best way to include jQuery in DotNetNuke 4.8.x?

孤者浪人 提交于 2020-02-25 08:58:30
问题 I'm using DotNetNuke 4.8.x and want to utilize jQuery. Could anyone possibly suggest me on what is the best way to integrate jQuery into DNN? I won't be able to upgrade DNN version to 5 which has built-in support for jQuery. Your advice would be much appreciated. 回答1: To avoid loading jQuery multiple times, it might be best to use a client-side script, like the one given here. In the server-side, you can load jQuery library in the page header during the Page.Init or Page.Load event: Protected

Basic auth in DNN Web API service

拥有回忆 提交于 2020-01-25 08:25:06
问题 I'm building a library type module for DNN that will house a Web API service that is meant to be called by a separate application. It has one controller that inherits from DnnApiController. I'd like the requests in this service to use basic auth, since the other app has no association with DNN and its users won't be interacting with the portal. All it can do is pass in a username and password (this will happen over SSL). We are running DNN 7.3 which is configured to use standard Forms

How to download/open the file that I retrive by server path?

岁酱吖の 提交于 2020-01-15 11:59:18
问题 I am making a module that shows the tree view of documents that are stores on my drive in a folder. It is retrieving well. But the problem is that the documents are in different format like(.pdf, .docx etc). That are not opening in browser on click. There it shows a 404.4 error. So Tell me how can I download/open different format files through button click? The following is my code: protected void Page_Load(System.Object sender, System.EventArgs e) { try { if (!Page.IsPostBack) { if (Settings

How to avoid jquery conflict in dnn

旧时模样 提交于 2020-01-13 19:07:50
问题 I am working on dnn modules development. Jquery is calling many times as the number of modules increases on the same page. (function ($) { $('#grid').hoverfold(); })(jQuery); This is what I used to avoid conflict. If I use the same for the next effect it is not working. 回答1: For example, If you look at /DesktopModules/Admin/HostSettings/HostSettings.ascx you will notice that dnn core developers are using following code: (function ($, Sys) { $(document).ready(function () { //Your code goes

How do I export a Gridview Control to Excel in DotNetNuke?

冷暖自知 提交于 2020-01-06 15:01:31
问题 Is there an alternative to using this since using a <form runat="server"> will cause a 500 error. public override void VerifyRenderingInServerForm(Control control) { /* Verifies that the control is rendered */ } EDITED With the assistance from @HansDerks I ended up using the following(a jazzed up version of the solution provided.): protected void Export_Click(object sender, System.EventArgs e) { StringWriter writer = new StringWriter(); HtmlTextWriter htmlWriter = new HtmlTextWriter(writer);

DNN Module Import file

左心房为你撑大大i 提交于 2020-01-06 06:37:13
问题 I'm making a module to import CODA files. It is a Belgian banking standard. I have seen around on the internet, and as of now, there is no existing module for DNN. There are snippets here and there and there's ODOO, but I need it in DNN. I'm not new to programming, but I am however new to web dev. I am trying to first import the file and then parse it. However, I can't seem to find any straightforward way of importing it. I tried to see the code here but was not able to adapt it for my need.

DNN Module Import file

六月ゝ 毕业季﹏ 提交于 2020-01-06 06:36:32
问题 I'm making a module to import CODA files. It is a Belgian banking standard. I have seen around on the internet, and as of now, there is no existing module for DNN. There are snippets here and there and there's ODOO, but I need it in DNN. I'm not new to programming, but I am however new to web dev. I am trying to first import the file and then parse it. However, I can't seem to find any straightforward way of importing it. I tried to see the code here but was not able to adapt it for my need.

Adding independent aspx/asmx pages into DotNetNuke

大兔子大兔子 提交于 2020-01-04 14:31:38
问题 Howdy, I just installed dotnetnuke 5.06 on my server, say, the path is mydomain.com/dnn I have a library independent of dotnetnuke that I have to run and it contains web services and various other httphandlers so I haven't tried to integrate it into DNN just yet. the library is located under mydomain.com/dnn/lib The library worked fine on my old server running 5.04 and everything worked fine, but for some reason my new installation with 5.06 (windows 2008, sql server, iis 7.5) returns 404

Adding independent aspx/asmx pages into DotNetNuke

与世无争的帅哥 提交于 2020-01-04 14:31:21
问题 Howdy, I just installed dotnetnuke 5.06 on my server, say, the path is mydomain.com/dnn I have a library independent of dotnetnuke that I have to run and it contains web services and various other httphandlers so I haven't tried to integrate it into DNN just yet. the library is located under mydomain.com/dnn/lib The library worked fine on my old server running 5.04 and everything worked fine, but for some reason my new installation with 5.06 (windows 2008, sql server, iis 7.5) returns 404