| Author |
Message |
jrmcdona
Guest
|
Posted:
Wed Jan 12, 2005 1:33 am Post subject:
overriding default title property |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
 |
|
|
|
|