Hi Bilal,
How about using some JavaScript to change the title dynamically?
Private Sub Page_Load _
(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
txtAcountNo.Attributes.Add("onblur", _
"document.title=this.value;")
End Sub
<HTML>
<HEAD>
<title>
<% = txtAcountNo.text %>
</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="FlowLayout">
<form id="Form1" method="post" runat="server">
<P>
<asp:TextBox id="txtAcountNo" runat="server"></asp:TextBox></P>
<P>
<asp:Button id="Button1" runat="server" Text="Button"></asp:Button></P>
</form>
</body>
</HTML>
"Bilal Dhavan" <Bi********@hotmail.com> wrote in message
news:OI**************@tk2msftngp13.phx.gbl...
I am using ASP.Net with .Net Framework 1.1.
I want to display account number in the windows title bar. The data that I
am going to display will be from server side control (txtAcountNo.text).
I can use the following statement to display the title.
<title>
<% = txtAcountNo.value %>
</title>
But the problem is if the user changes the txtAccountNo.text value while
working with the program it is not getting reflected in the title bar.
Programming point, I am resubmitting the page to change txtAccountNo.text.
This approach may be not a good one.
Any other approach?
Thanks,
Bilal