DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Forum: Building DNN Modules, Providers etc.

 26 Subscribed to this forum
Page 13 of 18 << < 1112131415 > >>

Topics

Replies
Rating
Status
Views
Subscribers
Last Post

What is the right code for DNN Login      

Started By  Leon
I tried to write my own login module for our platform. And I copied the code of DNN AuthenticationService from the DNN source project. But it didn't work. Any one can give me some advice following code is what I wrote: private void LoginUser(string username, string password) { var status = UserLoginStatus.LOGIN_FAILURE;   var objUser = UserController.ValidateUser(PortalId, username, password, 'DNN', PortalSettings.PortalName, UserRequestIPAddressController.Instance.GetUserR...
3 3826 1
by Leon

WebApi fails to write cookie      

Started By  Declan Ward
I am building a custom login module to redirect the user to different pages based on the 'type' of user. Users may be in certain roles or not a DNN user at all. I write a cookie to be read by a module on the target page denoting the type of user along with some other info. If the user is a non DNN user the cookie is written as expected. If the user is a DNN user, and logged in successfully, the cookie fails to write. Checking the Network tab in FF, the cookie is not in the response head...
1 1838 1

404 with web api      

Started By  TopCat
I am trying to create a DNN module by following Clint Patterson's tutorial from 2014. When I get to the Hello World Web API test I get a 404 error. Research shows that Web API changed in DNN 9.4 and I am wondering if this is the cause of my 404. If so, what is the proper way to do a Web Api call now Later... got this to work, so no worries. Thanks.
5 3035 4
by TopCat

Module error after upgrade      

Started By  Peter van den Dungen
Hello guys, This week I have succesfully upgraded one of our production websites to DNN 9.6.1, when everything was working right and I also desided to upgrade my local development enviroment as well. I just downloaded and overwite the entire production root into my local one (except the webconfig) and I restored the prod db over my develop one. DNN is running ok, but my MVC modules are throwing the following exception (pretty strange is the highlighted path): InnerStackTrace: at...
3 2727 1

Intro      

Started By  Timo Breumelhof.
About this sub-forum
2 1802 1

Anti forgery token problem on Windows 2019      

Started By  jacoch
Hi. We have recently move a web site to a new Windows 2019 server. On that new server, we noticed that all ajax posts, when using https, are not validating anti forgery token any more. The web site works fine on older versions of Windows server. Our ajax calls look like this: $.ajax({   url: 'Url.Content('~/DesktopModules/MVC/ModuleName/Controller/Action')',   type: 'POST',   data: { 'itemId' : itemId },   headers: {     'ModuleId': Dnn.ModuleContext.ModuleId,     'TabId': Dnn.Mod...
1 2899 0
by jacoch

DAL2 - How to count records?      

Started By  Michael Tobisch
Hi all, I need to count records in a module. I wrote a stored procedure: CREATE PROCEDURE dbo.dnn_CountOutdatedRecords ModuleID int, StartDate datetime AS BEGIN SET NOCOUNT ON SELECT COUNT(*) FROM dbo.dnn_Records WHERE ModuleID = ModuleID AND StartDate In the controller I wrote the following code: public int OutdatedRecordsCount(int moduleID, DateTime startDate) { int outdatedRecordsCount; using (IDataContext ct...
4 2579 0

DNN MVC Module with Hierarchy Id      

Started By  Cameron K
Hello everyone! Quick question here. Has anyone used the sql hierarchy id type in their dnn mvc module with peta poco Do you need to write a custom query to cast the data type Do you need to add sql server types to the project Thanks!
2828 0

dnnTabs - set active tab      

Started By  Michael Tobisch
Hi all, I have a strange problem with the dnnTabs() jQuery plugin. Part of the ascx file ( = ): [div id='TabsPanel' class='dnnForm'] !-- The rendered output of this looks like [ul class='dnnAdminTabNav'] [li][a href='Tab1']Tab 1[/a][/li] [li][a href='Tab2']Tab 2[/a][/li] [li][a href='Tab3']Tab 3[/a][/li] [/ul] ...
1 2320 0

DNN 9.1.1 and Site Setting      

Started By  progmr
Hi, I've a DNN site. Current is v9.1.1, started is 8.0.3 I developed custom modules and I add some custom setting inside Module Settings Tab (https://invisiblefarm-my....l_zlQtx0zge=6WDx3t) I used this code                 ModuleController moduleController = new ModuleController();                 PortalSettings portalSettings = (PortalSettings)HttpContext.Current.Items['PortalSettings'];                 ModuleInfo moduleInfo = moduleController.GetModuleByDefinition(portalSettings.Po...
4 2572 0
by progmr
Page 13 of 18 << < 1112131415 > >>


RSS Feed Available

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved