'Assuming ddlMyList is bound to Datatable dt having column MyName and MyValueddlMyList.DataSource = dt ddlMyList.DataTextField = "MyName" ddlMyList.DataValueField = "MyValue"ddlMyList.DataBind()
ddlMyList.Attribute.Add("onchange","document.getElementById('TextBox1').value = this.options[this.selectedIndex].text;")