public void getPortalData() { if (!this.loggedOn) { MessageBox.Show("Invlaid logon. Data cannot be shown"); } else { proxy.CookieContainer = Cookies; lbl_companyname.Text = proxy.getCompanyName(); textBox1.Text = lbl_companyname.Text; textBox2.Text = proxy.getCompanyWebSite(); string _url2 = textBox2.Text; Uri anUri2 = new Uri(_url2); webBrowser2.Url = anUri2; dataGridView1.DataSource = bindingSource1; DataTable dt = new DataTable(); dt.Load(proxy.getCases().CreateDataReader()); bindingSource1.DataSource = dt; } }