Monthly Archives: October 2010

DotNetNuke (DNN) Replace Tokens


here is a list of DNN Replace Tokens if you get “…. is unknown for datasource ….. ” that means the token is not used anymore or it has been replaced with something else [Portal:Currency] Currency String[Portal:Description] Portal Description [Portal:Email] … Continue reading

Posted in C# | Leave a comment

Get Portal URL in html module


first you go to the settings page of your html module that you have placed on a page, and check the checkbox “Replace Tokens”   then click the save button, and go to the edit content section of your html … Continue reading

Posted in DotNetNuke | Leave a comment

How to change Portal Aliases in DotNetNuke, Before moving portal form local to other server with same database


Before you move your DotNetNuke portal to another server,  and you are using the same database connection string its best  to add the new domain name/HttpAlias in the site settings –> advanced settings  area in the admin page of your … Continue reading

Posted in DotNetNuke | Leave a comment

App_Code Namespace not found error


when adding a new class to the App_Code  folder with his own namespace , and you want to use that class in your code, you could get the error that the namespace could not be found, but when u move … Continue reading

Posted in C# | Leave a comment

Publishing/moving Dotnetnuke site from local to other/production server with same database connection string


ErrorPage.aspx?status=500&error=Thread+was+being+aborted. when working on a DotNetNuke site on your local dev server (ex http://localhost:2542/Dnn/) and using the same database connection stringand you want to move/publish your local site to a production server (ex http://www.myserver.com/dnn)you might get the error ErrorPage.aspx?status=500&error=Thread+was+being+aborted, when … Continue reading

Posted in DotNetNuke | Leave a comment

.Net User Controls VS Custom Server Controls


Custom controls compile to their own .dll file and can be used across applications.User controls are limited to a single application. Custom controls require no additional files beyond the .dll and are completely compiled.User control must be deployed as an … Continue reading

Posted in C# | Leave a comment

Inter Process Communications– IPC


Below is a simple way to send an object from 1 application to another application, just use a Form using System.Runtime.InteropServices; [DllImport(“user32.dll”)] public static extern bool AddClipboardFormatListener(IntPtr hwnd); [DllImport(“user32.dll”)] public static extern bool RemoveClipboardFormatListener(IntPtr hwnd); private static int WM_CLIPBOARDUPDATE = … Continue reading

Posted in Geen categorie | Leave a comment

Get Assembly/Application location and folder


    Get the full path to the assembly file, and the path to the folder where the assembly/application is in string assemblyLocation = System.Reflection.Assembly.GetAssembly(typeof(MonitorTrayIcon)).Location; string assemblyDir = System.IO.Path.GetDirectoryName(assemblyLocation);

Posted in C# | Leave a comment