Redirect to another page from Silverlight

On the side of the Silverlight page, I want to redirect to another aspx page on the same website and use the POST method to send additional header information. Any ideas how to implement this? Any samples are appreciated. :-)

I am using VSTS2008 + .Net 3.5 + Silverlight 2.0 + C #.

+3
source share
2 answers

My suggestion would be to have a visible hidden button on the page, and then use javascript to get it and .Click (). That way, you can make a message without any work this guy went through: http://mentaljetsam.wordpress.com/2008/06/02/using-javascript-to-post-data-between-pages/

Especially considering that it’s a bear to create POST-to-ASPP.NET through javascript, because ASP.NET requires disgusting things like viewstate etc.

+3
source

I think you are looking for HtmlPage.Document.Submit ().

Can Silverlight trigger a page refresh?

+2
source

Source: https://habr.com/ru/post/1715822/


All Articles