protected void forgotPass(object sender, EventArgs e) { PassReset.DepartmentOfEducation client = new PassReset.DepartmentOfEducation(); string str = client.SendIt(UserName.Text); Response.Write("<script>alert('" + str + "');</script>"); }
protected void testbutton_Click(object sender, EventArgs e) { PassReset.DepartmentOfEducation client = new PassReset.DepartmentOfEducation(); if (!CheckForInternetConnection()) { Response.Write("<script>alert('No internet connection for sending mail, connect and try again');</script>"); } else { try { string str = client.SendIt(int.Parse(UserName.Text)); Response.Write("<script>alert('" + str + "');</script>"); } catch { Response.Write("<script>alert('Error with ID, Check your ID');</script>"); } } }