R
rn5a
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?
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?