473,494 Members | 2,223 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Page.Title

I am using the Title property of the Page class in the Page_Load event
to set the title of the page so that the browser displays appropriate
titles.

<html>
<head runat="server">
<script runat="server">
Sub Page_Load(.......)
If Not (Page.IsPostBack) Then
Page.Title = "TITLE1"
Else
Page.Title = "TITLE2"
End If

'some more code comes here
End Sub
</script>
</head>
<body>
..........
</body>
</html>

When I run the above code in my local intranet (IIS 5.1 WinXP Pro),
then the above code works fine but when I run the above code on a
remote server at Brinkster.com, then the Page.Title lines generate an
error saying

Title is not a member of the Page class.

What could be going wrong? Didn't .NET1.1 support Page.Title & that it
has been introduced in .NET2.0?

Mar 17 '07 #1
1 1341
rn**@rediffmail.com wrote:
I am using the Title property of the Page class in the Page_Load event
to set the title of the page so that the browser displays appropriate
titles.

<html>
<head runat="server">
<script runat="server">
Sub Page_Load(.......)
If Not (Page.IsPostBack) Then
Page.Title = "TITLE1"
Else
Page.Title = "TITLE2"
End If

'some more code comes here
End Sub
</script>
</head>
<body>
.........
</body>
</html>

When I run the above code in my local intranet (IIS 5.1 WinXP Pro),
then the above code works fine but when I run the above code on a
remote server at Brinkster.com, then the Page.Title lines generate an
error saying

Title is not a member of the Page class.

What could be going wrong? Didn't .NET1.1 support Page.Title & that it
has been introduced in .NET2.0?
Exactly.

"Supported in: 3.0, 2.0"

http://msdn2.microsoft.com/en-us/lib...age.title.aspx

--
Göran Andersson
_____
http://www.guffa.com
Mar 18 '07 #2

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

Similar topics

6
38313
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...
6
2457
by: Don Grover | last post by:
How can I get the page title into an variable to handle in my asp. Don
1
4721
by: alex | last post by:
Hi ! I couldn't make backups with our new system using db2 8.2. Every time I trigger a backup I get this error message: BACKUP DATABASE EBUERO2 ONLINE TO "/raid/backup/ebuero2/part1",...
5
2898
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...
4
3699
by: Glenn M | last post by:
I have a shared XML file on a server . i also have one xslt file that performs a simple transform on in to view the data. now i want to have another page that lets users modify the shared xml...
14
3459
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
4835
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
1
6480
by: vj | last post by:
How i can populate all fileds dynamically in jsp page based on contents found in xml file? I have written jsp servlets and java class file. i transferred automatic data from jsp to servlet then to...
0
1324
by: Spondishy | last post by:
Hi, I have a fairly simple httpmodule tied in to the endrequest event of the pipeline that writes the page title to the iis log. The problem is, I have a page where the title is changed in the...
4
2119
osward
by: osward | last post by:
I had made a table colum sortable and paging the table, following are the code // Display Event List echo "<center>"._EVENTLIST."</center><br>"; $now = Date(Y-m-d); // sort table...
0
7119
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
7157
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
7195
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...
1
6873
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
7367
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
4579
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...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
644
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.