protected void txtname_TextChanged(object sender, EventArgs e) { try { schedule_work_doctor1 doc = schedule_work_doctor1.show_swd_doc(txtname.Text); if (doc != null) { string opd_name = doc.emp_doc_name; lblname.Text = opd_name; // ClientScript.RegisterStartupScript(GetType(), "hwa", "alert('" + doc.opd_name + "');", true); } } catch (Exception) { } }