Skip to main content

Posts

How to read DNN custom user profile properties

Dear All, here is a function for getting DNN user profile properties (Note it's only working with DNN6.0+ versions) //Import these two classes using DotNetNuke.Entities.Profile; using DotNetNuke.Entities.Users; //Place this function  protected string GetProfilePropertyValue(string propertyName)         {             string value;             ProfilePropertyDefinition ppd = UserInfo.Profile.GetProperty(propertyName);             if (ppd == null)             {                 value = "";             }             else             {                 value = ppd.PropertyValue;                 if (value == null)   ...

How to enable cotnent localization in DNN 6 & 7

Dear All,  Check out how to enable the content localization in DNN 6 and 7  Regard Rashid Imran BIlgrami http://www.bestvisualization.com

Page Setting Error in DNN with Arabic Language Error :Valid values are between 1318 and 1500, inclusive. Parameter name: year

Dear All, Today i found a solution for the problem of DNN Arabic Localization Error. In DNN 6.0 and + when we install the DNN it gives an issue under page setting the error is some thing like this InnerException:Valid values are between 1318 and 1500, inclusive. Parameter name: year Message:DotNetNuke.Services.Exceptions.PageLoadException: Valid values are between 1318 and 1500, inclusive. Parameter name: year ---> System.ArgumentOutOfRangeException: Valid values are between 1318 and 1500, inclusive. Parameter name: year etc .... you can get rid of this problem by following below steps: Step 1: Open DNN installed directory Step 2: Open following folder location : DNNDIRECTORY\DesktopModules\Admin\Tabs Step 3: Open ManageTabs.ascx  Step 4: Copy and past following line between Register controls and <Div>code  <%     startDatePicker.Culture = new System.Globalization.CultureInfo("en-US");     endDatePicker.Culture = ne...

Create Your Own Keep Alive Service

Dear All  You can create your own keep alive service by blow code (Note i got this code but it still not tested yet)  original post  http://al-atari.net/?p=569 Imports System.IO Imports System.Net Imports System.Text Imports System.Net.Mail Module Startup     Sub Main()         Call CheckOneSite("http://www.part-time-work-at-home-opportunities.com/keepalive.aspx")         Call CheckOneSite("http://www.site2.com")         Call CheckOneSite("http://www.site3.com")         Call CheckOneSite("http://www.siten.com")     End Sub     Private Sub CheckOneSite(ByVal pUrl As String)         Try             ' Create a request for the URL.                      Dim lRequest As WebRequest = WebRequest.Create(pUrl)   ...

Keep Alive Free Websites

Dear All, Here are the free website for pinging the DNN website for better performance. http://www.dnnmonitor.com/ http://www.pingalive.com/ http://www.mandeeps.com/ Regards Rashid Imran Bilgrami http://www.bestvisualization.com 

What is Server.Transfer In .net or Server.Transfer vs Response.Redirect

Dear All, Here is a detail video about Server.Transfer vs Response.Redirect command I hope it helps you alot  Regards  Rashid Imran Bilgrami  CEO Best Visualization http://www.bestvisualization.com  

SQL Agent disabled / how to enable SQL agent

Dear Readers, Today i found that SQL agent is disabled and i can active through the below process First you can check first these points Go to run type services.msc Right click on the SQL Server Agent (MSSQLSERVER) Then check in the properties your startup type might be disabled change it to automatic or manual and try again it will enable the start option If the above process not workable then check this one SQL Server blocked access to procedure 'dbo.sp_get_sqlagent_properties' of component 'Agent XPs' because this component is turned off as part of the security configuration for this server. A system administrator can enable the use of 'Agent XPs' by using sp_configure. For more information about enabling 'Agent XPs', see "Surface Area Configuration" in SQL Server Books Online. You need to run the following script under you SQL management Studio 1) Open the new query 2) Past the code sp_configure 'show ...