How can I select the appropriate option programmatically based on the value of ch
Using JavaScript you can set like:
function setDropDownSeletedValue(selectedValue)
{
var myCB=document.getElementById('myCB');
myCB.value=selectedValue;
}
Now, set value from code behind or JS directly:
string valueFromDB = "W";
string script = string.Format("setDropDownSeletedValue('{0}')", valueFromDB);
ClientScript.RegisterStartupScript(this.GetType(), "KeyValue", script, true);