title: c# form, connect to database selecting random website
body: <p>I am trying to connect to a remote mysql database in a form based C# application. I want it so a user can click a button and it will randomly select a website url from a online database, I then want the website to be displayed within a broswer within my application. I have got it so I can hard code a website URL and it will display the website in the browser control but want to take it a step further and pull a website URL from a database.</p>
  
  <p>Here is my current code</p>
  
  <pre><code>            webBrowser1.Url = new Uri("http://www.mintuz.co.uk");
  </code></pre>
  
  <p>And this is what I want to achieve. </p>
  
  <p>Say I have 3 website URL's in a database</p>
  
  <pre><code>ID | Website URL
  
  -----------------
  
  1  | http://www.mintuz.co.uk
  
  2  | http://www.google.com
  
  3  | http://www.hello.com
  </code></pre>
  
  <p>I want one of those URL's to be selected randomly then shown on the browser. </p>
  
  <p>Thanks</p>