Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to read control panel settings of end user client
    primarykey
    data
    text
    <p>I have an application in which I have to show the currency input fields by picking up the settings from (<strong>in Windows: Control Panel > Region and Language > Additional Settings > Digit grouping symbol</strong>). For e.g.<strong>1,234,567.89</strong>. If I change my Digit grouping symbol to apostrophe(') then the result would be <strong>1'234'567.89</strong>. For this I am using the following code:</p> <pre><code> int value = 123456789; string output = (value.ToString("C", CultureInfo.CurrentCulture)); Response.Write(output); </code></pre> <p>The above code gives me the output like <strong>123"456"789.00</strong>. Because my Digit grouping symbol is(<strong>"</strong>). </p> <p>This code works fine on my local, but my actual requirement is to pick each client settings. I host my code on IIS. And when some other user opens the page it only picks my local settings not the end user settings. I want to pick the client "<strong>Control Panel</strong>" settings who opens the page and reads the currency input fields as according to his local settings.</p> <p>To solve this purpose I follow <a href="http://technet.microsoft.com/en-us/library/cc771836%28v=ws.10%29.aspx" rel="nofollow">this</a> url. But no help. Please help quick, Thanks in advance.</p> <p><strong>UPDATE:</strong> When I host this page on IIS, it default shows <strong>$123,456,789.00</strong> but my current culture is French and my Digit grouping symbol is(<strong>"</strong>), the output should come <strong>123"456"789;00 €</strong> . Why IIS not picking up my Control Panel settings.</p> <p><strong>NOTE:</strong> I also make Enable Client Based Culture set to <strong>True</strong>. I need some quick help.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload