Thanks for the suggestion on my Syntax error.
However my original problem still not resolved.
Here is my Code
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
If Not IsPostBack Then
'Load the data from database
pgTitle.InnerText = txtCityName.Text 'Works fine at this step
else
'User do city search
pgTitle.InnerText = txtCityName.Text 'Even though
pgTitle.InnerText is getting populated with the latest city name Title is
not reflecting the latest name
end if
End Sub
Thanks for your reply.
Amir
"Shiva" <sh******@online.excite.com> wrote in message
news:uO**************@TK2MSFTNGP14.phx.gbl...
The opening title tag is missing the closing angular bracket '>' (after
"pgTitle").
"Amir Sen" <Am*********@hotmail.com> wrote in message
news:en**************@TK2MSFTNGP15.phx.gbl...
Now I am getting the following error message.
The server tag is not well formed.
Below are the codes.
HTML Code:
<title runat = "server" id="pgTitle"</title>
Code behind Code
Protected pgTitle As HtmlGenericControl
In the Page_Load event,
pgTitle.InnerText = txtCityName.Text
What is wrong with this code?
Thanks,
Amir
"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@140.99.99.130.. . "Amir Sen" <Am*********@hotmail.com> wrote in news:ucY9Rb1lEHA.896
@TK2MSFTNGP12.phx.gbl:
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).
Place a literal or label control in the <title></title> area of the
webpage.
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/