2017-02-14 95 views
0

我有這樣一段代碼在我的aspx文件:位置的本地資源

<asp:TextBox ID="tbEventName" runat="server" CssClass="required" Width="350px"></asp:TextBox><asp:RequiredFieldValidator runat="server" Display="None" ControlToValidate="tbEventName" ErrorMessage="<%$Resources:EventNameMissing %>"></asp:RequiredFieldValidator> 

現在我想修改「EventNameMissing」,這似乎是一個本地資源。 (資源已經定義幷包含一個字符串) 我通過編程方式調用GetLocalResourceObject("EventNameMissing");驗證了這一點,該函數返回與我的aspx文件中相同的字符串。

但是,我找不到字符串所在的文件。在我的解決方案資源管理器中有一個條目「App_LocalResources」,但它是空的。 那些位於哪裏?

回答

0

原來本地資源來自數據庫。 Web.config中定義了以下配置:

<configSections> 
    <section name="wwDbResourceProvider" type="Westwind.Globalization.wwDbResourceProviderSection" requirePermission="false" /> 
</configSections>