title: Asp.Net bind string from resources to ListItem
body: <p>I have following code.</p>
  
  <pre><code>  &lt;asp:DropDownList ID="CurrencyList" AutoPostBack="true" runat="server" OnSelectedIndexChanged="CurrencyList_SelectedIndexChanged"&gt;
                      &lt;asp:ListItem Text="&lt;%$ GetGlobalResourceObject("GlobalResourceBms", "RentPage2FilterByLabel")%&gt;" Value="-1"&gt;&lt;/asp:ListItem&gt;
                  &lt;/asp:DropDownList&gt;
  </code></pre>
  
  <p>This code throws </p>
  
  <blockquote>
    <p>Parser Error Message: Literal expressions like '&lt;%$ GetGlobalResourceObject("GlobalResourceBms", "RentPage2FilterByLabel")%>' are not allowed. Use " /> instead.</p>
  </blockquote>
  
  <p>How to this thing in Asp.NET , I need to get string from resources and put it as Item of dropdown</p>