コード例 #1
0
 protected void lbtSearchBank_Click(object sender, EventArgs e)
 {
     try
     {
         if (Session["propertyvalue"] != null)
         {
             string PropertyValue = Session["propertyvalue"].ToString();
             GridView1.DataSource = uc.LoadBankDetailsbySearch(PropertyValue, txtSearch.Text);
             GridView1.DataBind();
         }
         else
         {
             string text = "Please select property!";
             ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpoperror('" + text + "')</script>", false);
         }
     }
     catch (Exception ex)
     {
         string text = ex.Message.ToString();
         ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpoperror('" + text + "')</script>", false);
     }
 }