title: how to navigate to a web page on a button click in windows phone application development
body: <p>I am working on my first app in windows phone application. On clicking an image i want to navigate to a web site but on a different page in my application. What i did till now is:</p>
  
  <pre><code>private void Image_Click1(object sender, RoutedEventArgs e)
  {
      NavigationService.Navigate(new Uri("/Page2.xaml", UriKind.Relative));
      WebBrowserTask webBrowserTask = new WebBrowserTask();
      webBrowserTask.Uri = new Uri("http://www.google.com");
      webBrowserTask.Show();
  }
  </code></pre>
  
  <p>Now if i do it in this way i get some problems in <code>webBrowserTask.Show()</code>. Due to this method my application doesnot run. HOwever if i remove the navigationservice line it navigates to the web sute but on the same page... Please help....Thanks in advance</p>