protected async Task RefreshResults() { if (CrossConnectivity.Current.IsConnected) { try { App_activity_indicator.IsVisible = true; App_activity_indicator.IsRunning = true; string webaddress = Libraries.MobileConfig.GetWebAddress(campus_value) + string.Format("DataFinder.aspx?dataFormat=studexamresults®no={0}", Application.Current.Properties["userno"]); var content = await _client.GetStringAsync(webaddress); MyDB DB = new MyDB(); if (content != "[]") { //await DisplayAlert("IUIU Mobile ", "Accessing Web Location: " + content, "OK"); // DB.resetResults(); DB.AddResults(content); } else { await DisplayAlert("Error! ", "No Results Found for " + campus_value, "OK"); } App_activity_indicator.IsVisible = false; App_activity_indicator.IsRunning = false; } catch (Exception) { App_activity_indicator.IsVisible = false; App_activity_indicator.IsRunning = false; } } else { //await DisplayAlert("IUIU Mobile ", "No Connection. Saved Data will be used", "OK"); } }