473,414 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Title tag as control

Why is InnerText set to the correct value here:

<title id="tagTitle" runat="server">Divisions</title>

But not here:

<title id="tagTitle" runat="server">Divisions -
<%=Settings.GetLeagueName()%></title>

Why does the <%%> make the InnerText property of the tagTitle control be
blank?
Nov 17 '05 #1
2 961
Thanks. I guess I am just looking for more insight as to why the code block
<%%> breaks the functionality that I am looking for and why a databinding
block does not <%#%>. Once I know more, I can move forward with the
necessary changes with confidence.
"Justin Dutoit" <an**@anon.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I don't know, but to set the Title dynamically, you could put a client
script block in the body of the page-

<script language=javascript>
document.title='Divisions-<%=Settings.GetLeagueName() %>';
</script>

hth
J

"Chris Becker" <sl*****@hotmail.com> wrote in message
news:#M*************@TK2MSFTNGP12.phx.gbl...
Why is InnerText set to the correct value here:

<title id="tagTitle" runat="server">Divisions</title>

But not here:

<title id="tagTitle" runat="server">Divisions -
<%=Settings.GetLeagueName()%></title>

Why does the <%%> make the InnerText property of the tagTitle control be
blank?


Nov 17 '05 #2
You could also put a Literal Control between your open and closing Title
Tags - - then, in the page load event, call the method that gets your
information and assign it to the text property of the Literal Control

David Wier
http://aspnet101.com
http://aspexpress.com
"Chris Becker" <sl*****@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Why is InnerText set to the correct value here:

<title id="tagTitle" runat="server">Divisions</title>

But not here:

<title id="tagTitle" runat="server">Divisions -
<%=Settings.GetLeagueName()%></title>

Why does the <%%> make the InnerText property of the tagTitle control be
blank?

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Picho | last post by:
Hi all, Is there any .NET way (I am not rulling out API usage) to add button(s) to a form's title bar? I found some non-.NET solutions that did actually work in VB6 but not in the ..NET...
6
by: Guogang | last post by:
Hi, is there a way to change the page's title in code behind (C#)? I want to change this part: <HEAD> <TITLE> Can be changed dynamically. </TITLE> </HEAD> Thanks, Guogang
5
by: Maxim Izbrodin | last post by:
Hello For displaying page titles for my ASP.NET applications I use the following technique <title><%=BannerModule.PageTitle%></title where BannerModule.PageTitle is a public field of my user...
8
by: Amir Sen | last post by:
Is it possible to dynamically change the IE title? After subsequent post back of the same page I would like to change the IE title which is to be read from a server side control (TextBox). ...
14
by: Paul | last post by:
I want to set the page title and/or a form hidden field programatically through ASP.Net. I do not want to use something like... <% sTitle ="My Title" %> <html><title><%=sTitle%></title>..... ...
2
by: Nathan Sokalski | last post by:
I would like to change the <title></title> of a page from a user control. I have been unable to find any property in VB that allows me to do this. The only thing I have been able to find that might...
4
by: Al | last post by:
I'm loading Child forms into MDI form. I set ControlBox = False to all children forms at design time. But during loading the blue title bar appears for a portion of a second. This thing along with...
1
by: needin4mation | last post by:
I always get "untitled" for the webpartzone. I can get rid of it by putting the title= attribute in the control. I am using user controls. But what if I want it dynamic? then I can't edit the...
6
by: Rippo | last post by:
Is it possible to turn off the title tag in the page directive when using master pages? We have got meta data and title defined in a content control and are ending up with 2 title tags, one...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.