Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

Thursday, February 5, 2009

How to change in code the title of web page in Dotnetnuke based website?

In the ordinal web page to change programmatically the title of the .aspx page is simple:


protected void Page_Load(object sender, EventArgs e)
{
this.Title = "The ordinal web page";
}


In dotnetnuke's module that code will not help. The title of the web page will be created by DNN's core.

But we can solve this problem. The code below shows how to achieve this:

Wednesday, December 24, 2008

How to change string "You are here" in Dotnetnuke web site to other language

How to change string "You are here" in Dotnetnuke's web site to other language?

If you want to translate it, you need access to you DNN installation via file system. Look for the Skin folder (/Portals/_defauls/Skins/MinimalExtrophy) and inside there is a folder /App_localResources with a single file "index.ascx.resx" you need to copy to index.ascx.sv-SV.resx and edit using a text editor. you will find "you are here" near the end of the file and may overwrite it with your localization.

This works to DNN version 4.9 and above. How it works you may see here

Wednesday, October 22, 2008

Code formatter for C#, JavaScript, HTML, ASP.NET for your blog

When posting posts to my blog often need to insert some code saples into the text. It's good to show well formatted code for readers.

If found good free online tool for my purposes:

www.manoli.net/csharpformat/format.aspx

This tool allows you to format your C#, VB, HTML, XML, T-SQL or MSH (code name Monad) code for publishing on a web site or in a blog.

All welcome!