In Microsoft Visual Web Developer, you use the
Generate Local Resource tool to generate a local resource file for an ASP.NET 2.0 Web page. When you do this, any embedded code blocks on this page may be deleted.
For example, you have a
Panel control on the ASP.NET 2.0 Web page. The code for the
Panel control resembles the following:
<form id="form1" runat="server">
<asp:Panel runat="server" ID="disablePanel">
The current server time is: <%=DateTime.NOW.ToString() %>
</asp:Panel>
</form>
Then, you open this Web page in Visual Web Developer, and then click the
Generate Local Resource on the
Tools menu. However, the following string disappears from the code:
<%=DateTime.NOW.ToString() %>
Therefore, if you view the
Source view of this page, the code resembles the following:
<form id="form1" runat="server">
<asp:Panel runat="server" ID="disablePanel" meta:resourcekey="Panel1Resource1">
The current server time is:
</asp:Panel>
</form>