I am wondring if it is possible to get Culture and UICulture of the client form Javascript.
Thanks
There is No Way to do That directly by using Jquery, however if you are using .NET framework you can set Culture and UICulture in public properties and read them from Jquery.
in your CS file:
public string GetCurrentCulture
{
get
{
return System.Threading.Thread.CurrentThread.CurrentCulture.DisplayName;
}
}
And from HTML:
var CurrentCulture = '';
$(document).ready(function () {
CurrentCulture = '<%= this.GetCurrentCulture %>';
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With