protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { try { NewsGridView.DataSource = ParseRssFile(); NewsGridView.DataBind(); } catch (Exception ex) { //Serilog Logger to save error in text file location D:\\ SerilogLogger.WriteErrorLog(ex.Message); } } }