예제 #1
0
 private void ddlProperty_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         DropDownList ddlPropertyName = (DropDownList)Master.FindControl("ddlProperty");
         string       PropertyName    = ddlPropertyName.SelectedItem.Text;
         string       PropertyVale    = ddlPropertyName.SelectedItem.Value;
         GridView1.DataSource = uc.LoadKycOfTenants(PropertyVale);
         GridView1.DataBind();
     }
     catch (Exception ex)
     {
         string text = ex.Message.ToString();
         ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpoperror('" + text + "')</script>", false);
     }
 }