473,395 Members | 2,796 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,395 software developers and data experts.

Title Tag

How do you change the <title> tag on programmatically? (in VB.net)

Thanks.
Nov 18 '05 #1
8 1326
you'll have to assign an ID and a runat=server to it

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Rob T" <RT*********@DONTwalchemSPAM.com> wrote in message
news:uB**************@TK2MSFTNGP11.phx.gbl...
How do you change the <title> tag on programmatically? (in VB.net)

Thanks.

Nov 18 '05 #2
I tired that. When you kick back into Design mode, the code is amazingly is
removed and just the ID remains...
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:ex**************@tk2msftngp13.phx.gbl...
you'll have to assign an ID and a runat=server to it

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Rob T" <RT*********@DONTwalchemSPAM.com> wrote in message
news:uB**************@TK2MSFTNGP11.phx.gbl...
How do you change the <title> tag on programmatically? (in VB.net)

Thanks.


Nov 18 '05 #3
give the title tag some id and set it to run at the server:
<title id=title1 runat=server></title>

then you can change the title like this:
title1.innertext = "some title"

"Rob T" <RT*********@DONTwalchemSPAM.com> wrote in message
news:uB**************@TK2MSFTNGP11.phx.gbl...
How do you change the <title> tag on programmatically? (in VB.net)

Thanks.

Nov 18 '05 #4
http://delphi.about.com/cs/adptips20...ltip0304_2.htm

This just happened to be the first link I came across when I SEARCHED for the answer :-)

"Rob T" <RT*********@DONTwalchemSPAM.com> wrote in message news:uB**************@TK2MSFTNGP11.phx.gbl...
How do you change the <title> tag on programmatically? (in VB.net)

Thanks.

Nov 18 '05 #5
http://authors.aspalliance.com/kenc/faq5.aspx

"Rob T" <RT*********@DONTwalchemSPAM.com> wrote in message
news:uB**************@TK2MSFTNGP11.phx.gbl...
How do you change the <title> tag on programmatically? (in VB.net)

Thanks.


Nov 18 '05 #6
You can use Client side JScript (or VBScript).

"Rob T" <RT*********@DONTwalchemSPAM.com> wrote in message
news:uB**************@TK2MSFTNGP11.phx.gbl...
How do you change the <title> tag on programmatically? (in VB.net)

Thanks.

Nov 18 '05 #7
Is a VisualStudio bug!!

Brun

"Rob T" <RT*********@DONTwalchemSPAM.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I tired that. When you kick back into Design mode, the code is amazingly is removed and just the ID remains...
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:ex**************@tk2msftngp13.phx.gbl...
you'll have to assign an ID and a runat=server to it

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Rob T" <RT*********@DONTwalchemSPAM.com> wrote in message
news:uB**************@TK2MSFTNGP11.phx.gbl...
How do you change the <title> tag on programmatically? (in VB.net)

Thanks.



Nov 18 '05 #8
Is a VisualStudio bug!!

Brun

"Rob T" <RT*********@DONTwalchemSPAM.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I tired that. When you kick back into Design mode, the code is amazingly is removed and just the ID remains...
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:ex**************@tk2msftngp13.phx.gbl...
you'll have to assign an ID and a runat=server to it

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Rob T" <RT*********@DONTwalchemSPAM.com> wrote in message
news:uB**************@TK2MSFTNGP11.phx.gbl...
How do you change the <title> tag on programmatically? (in VB.net)

Thanks.



Nov 18 '05 #9

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

Similar topics

6
by: the wonderer | last post by:
This is an elementary question, but I've not been able to find the answer, so here goes: I am developing a site using php. I have the html header information in a file that I include in all the...
13
by: mark | last post by:
IF I have something like this: <title><?php print($pagetitle); ?></title> <body> <?php include("folders/my_include.php"); ?> </body> </html> and my_include.php contains the value to the...
5
by: Info 3000 | last post by:
Hi there, Simple question, but headache ! I have a PHP Page like : <HTML> <HEAD> <TITLE>Sunny day !</TITLE> </HEAD>
6
by: Don Grover | last post by:
How can I get the page title into an variable to handle in my asp. Don
9
by: Ian Renfrew | last post by:
Essentially, I want to prevent the display of the Microsoft Internet Explorer or any other branding tag in the document title. One technique that I've used is to insert multiple spaces after the...
3
by: Andy Dingley | last post by:
We've all seen this structure many times: <ul> <li><a href="..." >Click here</a></li> <li><a href="..." >Click here</a></li> </ul> Now it's obvious good practice to have sensible link texts,...
4
by: laredotornado | last post by:
Hello, How do I use Javasript to get the <TITLE> element of a web page? If anyone can supply a cross browser way (IE 5.5+, Firefox 1+), it is most appreciated. Dave
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...
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>..... ...
6
by: vijai.kalyan | last post by:
Hello, I wrote a trivial program to set the console title in a console application. Here is the code:- namespace myns { class SetTitle { static void Main ( string args )
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.