Tuesday, March 13, 2012

Set Page title dynamically

I would like to make the title of the page change according to invoice #

how can I do this?

didn't see a field on the page property in the code behind file.

Thanks,

ShaneGoogle: "page title"+"ASP.NET"

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@. REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

"SStory" <TheStorys@.TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:#6OfbicQEHA.3016@.tk2msftngp13.phx.gbl...
> I would like to make the title of the page change according to invoice
#
> how can I do this?
> didn't see a field on the page property in the code behind file.
> Thanks,
> Shane
you mean actually search for an answer before asking a question! What an amazing concept!

"clintonG" <csgallagher@.REMOVETHISTEXT@.metromilwaukee.com> wrote in message news:e1A6QycQEHA.1312@.TK2MSFTNGP12.phx.gbl...
> Google: "page title"+"ASP.NET"
>
> --
> <%= Clinton Gallagher
> A/E/C Consulting, Web Design, e-Commerce Software Development
> Wauwatosa, Milwaukee County, Wisconsin USA
> NET csgallagher@. REMOVETHISTEXT metromilwaukee.com
> URL http://www.metromilwaukee.com/clintongallagher/
>
>
>
>
>
>
> "SStory" <TheStorys@.TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
> news:#6OfbicQEHA.3016@.tk2msftngp13.phx.gbl...
> > I would like to make the title of the page change according to invoice
> #
> > how can I do this?
> > didn't see a field on the page property in the code behind file.
> > Thanks,
> > Shane
>
You can set the page title through code by adding the runat="server"
attribute to your title tag.
Here's a good example:
http://www.aspalliance.com/kenc/faq5.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"SStory" <TheStorys@.TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:%236OfbicQEHA.3016@.tk2msftngp13.phx.gbl...
> I would like to make the title of the page change according to invoice #
> how can I do this?
> didn't see a field on the page property in the code behind file.
> Thanks,
> Shane
I didn't want to deprive the guy you know? :-)

<%= Clinton

"Raterus" <raterus@.spam.org> wrote in message
news:#$j3IIdQEHA.2644@.TK2MSFTNGP12.phx.gbl...
you mean actually search for an answer before asking a question! What
an amazing concept!

"clintonG" <csgallagher@.REMOVETHISTEXT@.metromilwaukee.com> wrote in
message news:e1A6QycQEHA.1312@.TK2MSFTNGP12.phx.gbl...
> Google: "page title"+"ASP.NET"
> --
> <%= Clinton Gallagher
> A/E/C Consulting, Web Design, e-Commerce Software Development
> Wauwatosa, Milwaukee County, Wisconsin USA
> NET csgallagher@. REMOVETHISTEXT metromilwaukee.com
> URL http://www.metromilwaukee.com/clintongallagher/
>
>
>
> "SStory" <TheStorys@.TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in
message
> news:#6OfbicQEHA.3016@.tk2msftngp13.phx.gbl...
> > I would like to make the title of the page change according to
invoice
> #
> > how can I do this?
> > didn't see a field on the page property in the code behind file.
> > Thanks,
> > Shane
Thanks Steve,

That was exactly what I needed. Feel dumb that I didn't think of it.

works great.

thanks again,

Shane

"Steve C. Orr [MVP, MCSD]" <Steve@.Orr.net> wrote in message
news:eQkLPPdQEHA.3476@.tk2msftngp13.phx.gbl...
> You can set the page title through code by adding the runat="server"
> attribute to your title tag.
> Here's a good example:
> http://www.aspalliance.com/kenc/faq5.aspx
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
> http://Steve.Orr.net
> Hire top-notch developers at http://www.able-consulting.com
>
> "SStory" <TheStorys@.TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
> news:%236OfbicQEHA.3016@.tk2msftngp13.phx.gbl...
> > I would like to make the title of the page change according to invoice #
> > how can I do this?
> > didn't see a field on the page property in the code behind file.
> > Thanks,
> > Shane

0 comments:

Post a Comment