My project is silverlight navighation project (IN-Browser) I want to navigate to an Url such as :
System.Windows.Browser.HtmlPage.Window.Navigate(new Uri(str
You cannot Navigate()
and still use POST. Navigate
is the equivalent of clicking a link or typing a URL in the address bar, which invokes the GET verb.
To use POST, you could instead use the Silverlight browser interop to programmatically create an HTML , set its
action
attribute to the correct URL, set its target
attribute to "_blank"
, add some fields, set their names and values and then
submit()
the form.
// Get document and body
var doc = System.Windows.Browser.HtmlPage.Document;
var body = doc.Body;
// Create a