コード例 #1
0
 protected void ButtonSearch_Click(object sender, EventArgs e)
 {
     if (TextBoxSearch.Text == "")
     {
         labDate.Text = "Please Enter What You search";
     }
     else
     {
         try
         {
             GridViewBook.DataSource = libEntity.searchBook(TextBoxSearch.Text);
             GridViewBook.DataBind();
         }
         catch (Exception)
         {
             labDate.Text = "Record Not found";
         }
     }
 }