Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2005

Tip: Looking for answers? Try searching our database.

ASP.NET 2 Tag Resolution

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris Welch - 22 Jul 2005 19:35 GMT
Interesting problem. I've begun working with my master page in ASP.NET
2, and I wanted to be able set my <title> tag as an HTML control. So,
after making the necessary changes to the tag, I went into the code
behind and started coding. The problem was that the code behind
recognized my <title> tag as an HtmlGenericControl, instead of the
HtmlTitle control that it really should be.

I tried to override the auto-declaration with my own protected
declaration, but alas, it gave me an error that it was already
declared.

I can work around this issue for now, but I'm worried that we're
loosing control of something and we can't be guaranteed that it will
work 100% of the time.

Anyone know if there will be a way to override these declarations?
Brock Allen - 22 Jul 2005 20:32 GMT
In 2.0 they've encouraged the <head> to be a server control -- it's now a
defined property on the Page base class, and they've exposed a Title property
for this scenario:

Page.Head.Title = "Welcome";

-Brock
DevelopMentor
http://staff.develop.com/ballen

> Interesting problem. I've begun working with my master page in ASP.NET
> 2, and I wanted to be able set my <title> tag as an HTML control. So,
[quoted text clipped - 12 lines]
>
> Anyone know if there will be a way to override these declarations?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.