Asp.net dropdownlist Onselectedindexchanged event

Raze

New Member
I have some dynamic controls in my asp.net page.like, \[code\]TextBox ratingtxtbox = new TextBox();ratingtxtbox.ID = "Rating_1";\[/code\]and \[code\]DropDownList Exsecondpositiontxtbox = new DropDownList();Exsecondpositiontxtbox.ID = "Exacta2nd_" + i.ToString();\[/code\]For my textbox I'm added keyup event as \[code\]ratingtxtbox.Attributes.Add("onkeyup", "ChangebyWin(" + i.ToString()+")");\[/code\]Its perfectly working..Now I added indexchanged event of dropdown list as\[code\]Exsecondpositiontxtbox.Attributes.Add("onselectedindexchanged", "ChangebyExacta(" + i.ToString() + ")");\[/code\]But it not working.. Is it the error in Key name..?
 
Back
Top