I have a very simple problem - I try to assign a server variable into a javascript variable;
e.g.
var data = @(DateTime.Now.Day.ToString() + " " + System.Globalization.CultureInfo.GetCultureInfo("pl-PL").DateTimeFormat.GetMonthName(DateTime.Now.Month) + ", " + DateTime.Now.Year.ToString());
alert(data);
the alert doesn't show, where's the bug ?
The source output is
var data = 4 , ;
alert(data);
but should be 4 december 2011