我該如何着手爲自定義網頁控件中的項目提供本地化文本?我以爲我只需要將meta.resourcekey標記添加到控件項目中,然後定義並填充一些名爲mycontrol.ascx。[lang] .resx的資源文件,但似乎不起作用。如何爲ASP.Net自定義網頁控件(.ascx)中的項目提供翻譯?
例如
MyControl.ascx
<asp:Label ID="Label1" meta:resourcekey="Label1" runat="server" Text="Oops!"></asp:Label>
MyControl.ascx.de.resx
Label1.Text Donner und Blitzen!
謝謝,但它沒有區別... – paul 2010-05-20 12:58:49