protected void CountEventList(int VenueID, string searchBy) { try { GetEventDetailsViewModel _getEventDetailsViewModel = new GetEventDetailsViewModel(); int EventListCount = _getEventDetailsViewModel.CountEventDetails(VenueID, searchBy); BindDataToDropDown(EventListCount); } catch (Exception ex) { throw ex; } }
protected void CountEventList(int VenueID, string searchBy) { try { GetEventDetailsViewModel _getEventDetailsViewModel = new GetEventDetailsViewModel(); int EventListCount = _getEventDetailsViewModel.CountEventDetails(VenueID, searchBy); BindDataToDropDown(EventListCount); } catch (Exception ex) { ErrHandler.WriteError(ex.Message); System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append(@"<script language='javascript'>"); sb.Append(@"alert('Error : " + ex.Message + "')"); sb.Append(@"</script>"); ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "Error", sb.ToString(), false); } }