redirect to another page from Silverlight

后端 未结 2 1415
灰色年华
灰色年华 2021-01-14 03:59

In side a Silverlight Page, I want to redirect to another aspx page in the same web site and using POST method to send some additional header information. Any ideas how to i

相关标签:
2条回答
  • 2021-01-14 04:17

    My suggestion would be to have a Visibility=hidden Button on the page, and then use javascript to retrieve it and .Click() it. Thus you get to do a post without all the work that this guy went through: http://mentaljetsam.wordpress.com/2008/06/02/using-javascript-to-post-data-between-pages/

    Especially considering it's a bear to craft a POST-to-ASP.NET through javascript, as ASP.NET requires pesky things like viewstate etc.

    0 讨论(0)
  • 2021-01-14 04:34

    I think you're looking for HtmlPage.Document.Submit() .

    Can Silverlight initiate Page Refreshes?

    0 讨论(0)
提交回复
热议问题