I have some dynamic controls in my asp.net page.
like,
TextBox ratingtxtbox = new TextBox();
ratingtxtbox.ID = "Rating_1";
and
DropDownList Exsecondpositiontxtbox = new DropDownList();
Exsecondpositiontxtbox.ID = "Exacta2nd_" + i.ToString();
For my textbox I'm added keyup event as
ratingtxtbox.Attributes.Add("onkeyup", "ChangebyWin(" + i.ToString()+")");
Its perfectly working..
Now I added indexchanged event of dropdown list as
Exsecondpositiontxtbox.Attributes.Add("onselectedindexchanged", "ChangebyExacta(" + i.ToString() + ")");
But it not working.. Is it the error in Key name..?
ClientIDMode=Staticon those controls? As that won't actually be the ID unless you are.