protected void Page_Load(object sender, EventArgs e) { try { PopulateGrid(); // popluategrid function } catch (Exception exc) { ShowException(exc); } }