Connexion English
09

Hi,

This small article will show you how to change the metadescription in dotnetnuke.

Simply add this code in your code behind page.

        Public ReadOnly Property BasePage() As DotNetNuke.Framework.CDefault

            Get

                Return DirectCast((Page), DotNetNuke.Framework.CDefault)

            End Get

        End Property
 
And then
 

        Private Sub Page_Init(ByVal sender As Object, ByValAs System.EventArgs) Handles Me.Init

BasePage.Description = “Your new description”
BasePage.Title = "Your page Title"

BasePage.KeyWords = “Your keywords”
BasePage.Author = "Your name"
BasePage.Comment = "Your Comment"

BasePage.Copyright = "Your Organization"

BasePage.Generator = "Your Generator"

        End Sub
 
 
 Francis
Posted in: Training
Actions: E-mail | Comments (3) RSS comment feed |

Post Rating

Comments

Rapid Share
11 janvier 2010 04:14
Excellent post! I always enjoy a solid technical post (and code) It saved me a good week+ - Keep up the good work!
giochi del casinò online
24 mars 2010 03:37
It helped me with ocean of knowledge so I really believe you will do much better in the future I appreciate everything you have added to my knowledge base .
giochi del casinò online
24 mars 2010 03:37
It helped me with ocean of knowledge so I really believe you will do much better in the future I appreciate everything you have added to my knowledge base .

Post Comment

Name (required)

Email (required)

Website

CAPTCHA image
Enter the code shown above in the box below

DNNMTL articles by month-year

DNNMTL articles by categories