title: Format price in Danish with curency symbol on right
body: <p>How can I format a price in Eval() method for a price in Danish and with currency symbol on the right i C# ?</p>
  
  <p>I have the following in my .aspx page to display the price:</p>
  
  <pre><code>&lt;td class="text-right price-col"&gt;&lt;%# Eval("Price", "{0:c}") %&gt;&lt;/td&gt;
  </code></pre>
  
  <p>But this display the price as e.g. <strong>kr. 79,00</strong> .. what I want is <strong>79,00 kr.</strong></p>
  
  <p>I saw this post <a href="https://stackoverflow.com/questions/1446273/changing-currency-symbol-location-in-system-globalization-numberformatinfo">Changing Currency Symbol location in System.Globalization.NumberFormatInfo</a> and added this method in codebehind which gives me the result I want:</p>
  
  <pre><code>&lt;td class="text-right price-col"&gt;&lt;%# PriceFormat(79) %&gt;&lt;/td&gt;
  
  protected string PriceFormat(decimal price) {
          System.Globalization.CultureInfo danish = new System.Globalization.CultureInfo("da-DK");
          danish = (System.Globalization.CultureInfo)danish.Clone();
          // Adjust these to suit
          danish.NumberFormat.CurrencyPositivePattern = 3;
          danish.NumberFormat.CurrencyNegativePattern = 3;
          decimal value = price;
          string output = value.ToString("C", danish);
  
          return output;
      }
  </code></pre>
  
  <p>But can I use the PriceFormat method with the Eval() method to get right price as parameter or modify the format in Eval() method to do the same?
  I the example I just insert a static value as parameter (79).</p>