Ejemplo n.º 1
0
 protected void btnBrowseAID_Click(object sender, EventArgs e)
 {
     tblEntryForm.Visible  = false;
     tblEntryForm2.Visible = false;
     ApplicationDataSource.SelectCommand = "SELECT a.* FROM application a" +
                                           " WHERE a.studentid=" + txtSID.Text;
     ApplicationDataSource.DataBind();
     dgApplication.Visible = true;
     if (dgApplication.Rows.Count == 0)
     {
         lblNullMessage.Visible = true;
     }
 }