overriding default title property
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
overriding default title property

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
jrmcdona
Guest





Posted: Wed Jan 12, 2005 1:33 am    Post subject: overriding default title property Reply with quote

I cannot seem to get this to work. Can somebody please give me a sample line
of code for setting the default title property to a string of my choice.

I know the Web Part class has this property, but for some reason i cannot
get my code to compile.

thanks,
jrmcdona
Back to top
James Mueller
Guest





Posted: Wed Jan 12, 2005 3:13 am    Post subject: Re: overriding default title property Reply with quote

When you connect to your site via Frontpage 2003 you have the option of
changing the page name. Actually if you open the default.aspx page of your
site, then save it it puts the title in instead of the line of code.

--
SHAREPOINTCOMMUNITY.COM
"jrmcdona" <jmc_1776@hotmail.com> wrote in message
news:8EA5AE6B-71D0-47AB-85E5-51FDA2D2CC1C@microsoft.com...
Quote:
I cannot seem to get this to work. Can somebody please give me a sample
line
of code for setting the default title property to a string of my choice.

I know the Web Part class has this property, but for some reason i cannot
get my code to compile.

thanks,
jrmcdona
Back to top
jrmcdona
Guest





Posted: Wed Jan 12, 2005 3:47 am    Post subject: Re: overriding default title property Reply with quote

Thanks. However, I mean in the custom web part itself. I am building custom
downloadable web parts and in my code (vs.net, C#) I want to set the deafult
title in the "Appearance" category.

thanks!



"James Mueller" wrote:

Quote:
When you connect to your site via Frontpage 2003 you have the option of
changing the page name. Actually if you open the default.aspx page of your
site, then save it it puts the title in instead of the line of code.

--
SHAREPOINTCOMMUNITY.COM
"jrmcdona" <jmc_1776@hotmail.com> wrote in message
news:8EA5AE6B-71D0-47AB-85E5-51FDA2D2CC1C@microsoft.com...
I cannot seem to get this to work. Can somebody please give me a sample
line
of code for setting the default title property to a string of my choice.

I know the Web Part class has this property, but for some reason i cannot
get my code to compile.

thanks,
jrmcdona


Back to top
jrmcdona
Guest





Posted: Fri Jan 14, 2005 12:31 am    Post subject: Re: overriding default title property Reply with quote

This code will do it:

this.Title = "Custom Title";



"jrmcdona" wrote:

Quote:
Thanks. However, I mean in the custom web part itself. I am building custom
downloadable web parts and in my code (vs.net, C#) I want to set the deafult
title in the "Appearance" category.

thanks!



"James Mueller" wrote:

When you connect to your site via Frontpage 2003 you have the option of
changing the page name. Actually if you open the default.aspx page of your
site, then save it it puts the title in instead of the line of code.

--
SHAREPOINTCOMMUNITY.COM
"jrmcdona" <jmc_1776@hotmail.com> wrote in message
news:8EA5AE6B-71D0-47AB-85E5-51FDA2D2CC1C@microsoft.com...
I cannot seem to get this to work. Can somebody please give me a sample
line
of code for setting the default title property to a string of my choice.

I know the Web Part class has this property, but for some reason i cannot
get my code to compile.

thanks,
jrmcdona


Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB