Using an explicit localization expression for a page title?

Up vote 1 down vote favorite share g+ share fb share tw.

I am trying to get an explicit localization expression for a page title, but can't seem to figure out how, and a google search comes up with nothing. With a control, it's nice and easy: " /> But how does one do this for the page title? I've tried specifying it in the page directive, but that of course doesn't work: " ... Is there a way to do this?

Or is it simply not possible? C# asp.net page-title link|improve this question asked Apr 13 '11 at 5:30marq20328 50% accept rate.

I should note: this page has a master file (so I can't specify in the tag), and if at all possible, I'd like the title to be changeable through the designer (so programmatic assignment won't do the trick) – marq Apr 13 '11 at 14:21 Well I feel kinda silly... " actually DOES work. The reason it wasn't working for me was that I have a custom FileLevelPageControlBuilder. Thanks everyone for the tips!

– marq Apr 15 '11 at 0:12.

You can also use either Page. Title = Resources.MyResource. StringId; or.

– marq Apr 13 '11 at 14:16 First one is code-behind. What you can do, is add a content placeholder in the head of the master page and then set the title tag like example 2 in the placeholder area in your child page. – Chris Marais Apr 13 '11 at 14:32 Hmm interesting thought, thanks Teos!

So I'm guessing this means there's no built-in way to use a resource binding expression in the page directive? – marq Apr 14 '11 at 3:13 I don't think so. There's no way to really reference it in the directive.

I usually just handle the page title from the code-behind. :) – Chris Marais Apr 14 '11 at 5:34.

Simply in the page load event write Page. Title="any String you want.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions