An asp:label is just asp.net's way of confusing people by not calling something a span. Why they could have called it <asp:span, I'll never understand. Remember, things like <asp:label have to be translated into actual HTML elements when the page is rendered. A label is a span. You could use <asp:literal instead.
<title><asp:literal id="ltlTitle" runat="server"></asp:literal></title> Ray at work > -----Original Message----- > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of > Mills, Andy R. (Regency) > Sent: Thursday, September 22, 2005 4:08 PM > To: '[email protected]' > Subject: [ASP] ASP.Net / Title > > Hello Guys: > > I am not sure if I am doing something wrong, or this is by design. > > In my ASP.Net page: I am using a label in the <TITLE> block as such: > <title><asp:Label id="lblTitle" runat="server" /></title> > > However: everytime the page is loaded: the title looks like > the following: > <span id="lblTitle">HI</span> > > Why is the <span> information showing? Is there anyway to > prevent this from happening? > > Thanks > > Andy Mills > > > > > > [Non-text portions of this message have been removed] > > > > ------------------------ Yahoo! Groups Sponsor > --------------------~--> Most low income households are not > online. Help bridge the digital divide today! > http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/17folB/TM > -------------------------------------------------------------- > ------~-> > > -------------------------------------------------------------- > ------- > Home : http://groups.yahoo.com/group/active-server-pages > --------------------------------------------------------------------- > Post : [email protected] > Subscribe : [EMAIL PROTECTED] > Unsubscribe: [EMAIL PROTECTED] > --------------------------------------------------------------------- > Yahoo! Groups Links > > > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/17folB/TM --------------------------------------------------------------------~-> --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
