xp_dirtree and Dynamic Page Title

The xp_dirtree extended procedure in SQL Server (7.0 and 2000) will list the subdirectories in the specified directory. Usage: EXEC master.dbo.xp_dirtree ‘C:Windows’

As I learnt today, the title (browser window title) of an ASP.NET page can be changed programatically. Here how …

In the HEAD section of the ASP.NET page (.aspx) define the title as a server side control:

… and in the code-behind (.aspx.vb) or inline code, define …

Protected PageTitle As New HtmlGenericControl

… and set the title?from anywhere in the code as …

Me.PageTitle.InnerText = “Hello World”

A cool technique to implement?for a template-driven UI.

Show Comments