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.EventArg s) Handles MyBase.Load
txtAcountNo.Att ributes.Add("on blur", _
"document.title =this.value;")
End Sub
<HTML>
<HEAD>
<title>
<% = txtAcountNo.tex t %>
</title>
<meta name="GENERATOR " content="Micros oft Visual Studio .NET 7.1">
<meta name="CODE_LANG UAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaul tClientScript" content="JavaSc ript">
<meta name="vs_target Schema"
content="http://schemas.microso ft.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********@hot mail.com> wrote in message
news:OI******** ******@tk2msftn gp13.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.te xt).
I can use the following statement to display the title.
<title>
<% = txtAcountNo.val ue %>
</title>
But the problem is if the user changes the txtAccountNo.te xt 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.te xt.
This approach may be not a good one.
Any other approach?
Thanks,
Bilal