Infragistics WebDateChooser when added from .cs file gave error
Posted
by Vinay Pandey
on Stack Overflow
See other posts from Stack Overflow
or by Vinay Pandey
Published on 2010-04-06T10:11:24Z
Indexed on
2010/04/06
10:13 UTC
Read the original article
Hit count: 748
infragistics
|c#.net
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?
© Stack Overflow or respective owner