使用一个明确的定位前pression一个页面的标题? [英] Using an explicit localization expression for a page title?
本文介绍了使用一个明确的定位前pression一个页面的标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图得到一个网页的标题明确的定位前pression,但似乎无法弄清楚如何,以及谷歌搜索出现什么也没有。
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:
<asp:literal runat="server" text="<%$ Resources:MyResource, StringId %>" />
但如何一个网页的标题做到这一点?我试着在页面指令指定它,但这当然不工作:
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:
<%@ Page Title="<%$ Resources:MyResource, StringId %>" ...
有没有办法做到这一点?或者是根本不可能的?
Is there a way to do this? Or is it simply not possible?
推荐答案
您也可以使用
Page.Title = Resources.MyResource.StringId;
或
<title><%= Resources.MyResource.StringId %></title>
这篇关于使用一个明确的定位前pression一个页面的标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文