return this.ddlSchool.Items[this.ddlSchool.SelectedIndex].Text ; // but it returns the original value, not the actual selected textWhat could be the problem?
string script = "ChangePhone('" + this.lblSchoolPhone.ClientID + "', this.options[this.selectedIndex].value)"; this.ddlSchool.Attributes.Add("onchange", script);Could it be that having onchange JavaScript event somehow interferes with the value? It should not be.