Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. htmlpage.window.navigation help

htmlpage.window.navigation help

Scheduled Pinned Locked Moved WPF
help
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yogesh_kumar_agarwal
    wrote on last edited by
    #1

    Dear All, I have a Page name first.aspx, from where i click on go to second.aspx. This second.aspx page has silverlight object. In silverlight object i use

    System.Windows.Browser.HtmlPage.Window.Navigate(New Uri(strUrl, UriKind.RelativeOrAbsolute), "\_self", "")
    

    to come back to first.aspx, but it works like back button of browser, means this page not showing the updates i have done in second.aspx. I have to refresh the first.aspx to see the new changes. So how could i navigate to the page with page refresh in silverlight. Thanks

    Y 1 Reply Last reply
    0
    • Y yogesh_kumar_agarwal

      Dear All, I have a Page name first.aspx, from where i click on go to second.aspx. This second.aspx page has silverlight object. In silverlight object i use

      System.Windows.Browser.HtmlPage.Window.Navigate(New Uri(strUrl, UriKind.RelativeOrAbsolute), "\_self", "")
      

      to come back to first.aspx, but it works like back button of browser, means this page not showing the updates i have done in second.aspx. I have to refresh the first.aspx to see the new changes. So how could i navigate to the page with page refresh in silverlight. Thanks

      Y Offline
      Y Offline
      yogesh_kumar_agarwal
      wrote on last edited by
      #2

      HI All, I got the solution for the same. Sharing with u

      HtmlPage.Window.Eval(String.Format("window.location.href='{0}';", strUrl))

      Thanks

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups