I have tried the following in SelectedIndexChanged method:
if(ddl.SelectedValue == "option"){
myFunc();
}
if(ddl.SelectedValue == "option"){
Page.ClientScript.RegisterStartupScript(this.GetType(),"CallMyFunction","myFunc()",true);
}
Second method gave me a function undefined error