Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
Dim objadd As New School
Try
If objadd.SearchSchool(txtemiscode.Text).Rows.Count >= 0 Then
Response.Redirect("Emis_Sch_View.aspx?EmisCode=" & txtemiscode.Text)
End If
MsgBox("School does not Exists")
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub