private void showExitTenants() { try { if (Session["propertyvalue"] != null) { string propertyvalue = Session["propertyvalue"].ToString(); GridView1.DataSource = uc.LoadexitApplied(propertyvalue); GridView1.DataBind(); } else { Session["propertyvalue"] = "0"; showExitTenants(); } } catch (Exception ex) { string text = ex.Message.ToString(); ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpoperror('" + text + "')</script>", false); } }