PDA

View Full Version : Dynamic Page Title


s.rye
09-10-2009, 03:44 PM
Hi,

I want to be able to use a field within an Access database as the page title for a Dynamic page. I will determine what row in the database to use via a querystring but what code do I need to use between the <title> </title> tags ???

Thanks for your help.

Steve

s.rye
09-10-2009, 04:05 PM
Forgot to mention, I have got as far as this for the <title> tag:

<title><asp:literal id="litTitle" runat="server" ></asp:literal></title>

And this for the pageload script:

litTitle.Text = Request.QueryString("ProdID") & " " & [DYNAMIC TEXT HERE]

This works fine but I just need to know how to connect to the database, filter the results and return the field into where I have "[DYNAMIC TEXT HERE]".

Any ideas?

pons_saravanan
09-24-2009, 04:44 AM
Hi,

I want to be able to use a field within an Access database as the page title for a Dynamic page. I will determine what row in the database to use via a querystring but what code do I need to use between the <title> </title> tags ???

Thanks for your help.

Steve

you can actually assign this with Me.Title(vb) or this.Title(C#)