fresh
fresh

Reputation: 21

Can you set a page's title via CSS or a Skin in ASP.net 2.0

I am using asp.net 2.0 I know can set the pages title via the code behind. But is it possible to set the page title using Theme, skin or css?

I need to display a different title depending on the theme selected.

Upvotes: 2

Views: 1738

Answers (2)

scunliffe
scunliffe

Reputation: 63666

Not via CSS

Upvotes: 0

Rune Grimstad
Rune Grimstad

Reputation: 36330

By inserting a Literal control in the Head-element of the page you should be able to apply a theme to it and thereby set its Text property.

If that doesn't work you can always check the Page.Theme property and set the pages title accordingly.

Upvotes: 1

Related Questions