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 said:
The opening title tag is missing the closing angular bracket '>' (after
"pgTitle").
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
to