Infragistics WebDateChooser when added from .cs file gave error
- by Vinay Pandey
Hi All,
When I add WebDateChooser to .aspx.cs file javascript associated with WebDateChooser does not load, whereas when I add WebDateChooser to the aspx page it works fine.
Below is the code I am using:-
WebDateChooser t=new WebDateChooser();
t.ID = String.Format("Date{0}{1}",value.Name.Replace(" ", ""), defID);
row.Cells[1].Controls.Add(t);
t.CssClass = "bigform";
t.Value = value.DefaultValue;
t.NullDateLabel = "";
I am getting error saying "SyntaxError: missing ; before statement".
Am I missing something while adding from .aspx.cs?