This is my code:
DropDownList drop = new DropDownList();
drop.Style = "left:10px; "; -------------->doesn´t work(error compilation)
drop.ID = "1";
drop.Height = 10;
drop.Width = 130;
drop.Style("Lef t") = "12";--------------->doesn´t work(error compilation)
drop.AutoPostBa ck = true;
drop.Items.Add( "test");
divDrop.Control s.Add(drop);
The first error said that "drop.Style " is a CssStyleColecti on.
The second error said said that "drop.Style " is property not a method.(this sound very wrong to me...i tried because i saw that in a forum)
Anyone has ideas?
Thanks
DropDownList drop = new DropDownList();
drop.Style = "left:10px; "; -------------->doesn´t work(error compilation)
drop.ID = "1";
drop.Height = 10;
drop.Width = 130;
drop.Style("Lef t") = "12";--------------->doesn´t work(error compilation)
drop.AutoPostBa ck = true;
drop.Items.Add( "test");
divDrop.Control s.Add(drop);
The first error said that "drop.Style " is a CssStyleColecti on.
The second error said said that "drop.Style " is property not a method.(this sound very wrong to me...i tried because i saw that in a forum)
Anyone has ideas?
Thanks
Comment