Dave Burke : Online Community and Social Business Specialist

this.Page.Title

It's funny the little things you discover in a new relationship.

"That's what she said."  HEY!


Anyway, I discovered this nifty little, new .NET 2.0 Page property this morning.  Not earth shaking, certainly, but assigning a title to a web page in .NET 1.x always seemed like such a pain.

this.Page.Title

Yohhhh, baby!

[tags: ASP.NET]

Comments (6) | Post RSS RSS comment feed

Posted on 3/22/2006 6:41:00 AM by Dave Burke
Categories: .NET
Tags:

Comments (6) -

3/22/2006 7:42:31 AM Permalink

Oh yes;
Not only you have this great feature in place but also can set many other HTML header items in code by using a collection of attributes and elements ;)

Keyvan Nayyeri |

3/22/2006 7:45:50 AM Permalink

Hm.  Other HTML header items?  Attribute and element collections?  I'll look into it.  Thanks, Keyvan!

daveburke |

3/22/2006 8:52:35 AM Permalink

Yes;
Just read this short story:
weblogs.asp.net/.../424039.aspx

Keyvan Nayyeri |

3/22/2006 9:09:06 AM Permalink

Great example, Keyvan.  Thanks!

daveburke |

3/24/2006 12:44:53 PM Permalink

Another welcome addition to the Page class in asp.net 2.0 is this.Page.Form, which returns the HtmlForm, which in turn opens up a slew of properties that were a total PITA to get to in 1.1.

jayson knight |

3/24/2006 12:51:39 PM Permalink

Something was a PITA in 1.1?  I'm sure I don't know what you mean, sir.

Hey, thanks for the tip.  I'll type in this.Page.Form and see what shows up in the dropdown!

daveburke |


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke

Copyright © 2013 Dave Burke.  All Rights reserved.