Using Client certificates for Windows RT (windows 8.1/windows phone 8.1)

The problem could be related to the validity of the certificate that you are using it. By default .Net refuses to establish https connection with invalid or not trusted certificate. Usually the certificate is invalid because it is generate by a non-trusted authority (self signed certificate) or because the address of the site is not … Read more

Disable web page navigation on swipe(back and forward)

You Should Try this solution in two way : 1) CSS only fix for Chrome/Firefox html, body { overscroll-behavior-x: none; } 2) JavaScript fix for Safari if (window.safari) { history.pushState(null, null, location.href); window.onpopstate = function(event) { history.go(1); }; } Over time, Safari will implement overscroll-behavior-x and we’ll be able to remove the JS hack Possible … Read more

Hide Status bar in Windows Phone 8.1 Universal Apps

With the release of Windows Phone 8.1 SDK comes a new StatusBar. The StatusBar replaces the SystemTray from Windows Phone Silverlight Apps. Unlike the SystemTray, the StausBar can only be accessed via code and some functionality has changed. StatusBar statusBar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView(); // Hide the status bar await statusBar.HideAsync(); //Show the status bar await statusBar.ShowAsync(); … Read more

How to POST using HTTPclient content type = application/x-www-form-urlencoded

var nvc = new List<KeyValuePair<string, string>>(); nvc.Add(new KeyValuePair<string, string>(“Input1”, “TEST2”)); nvc.Add(new KeyValuePair<string, string>(“Input2”, “TEST2”)); var client = new HttpClient(); var req = new HttpRequestMessage(HttpMethod.Post, url) { Content = new FormUrlEncodedContent(nvc) }; var res = await client.SendAsync(req); Or var dict = new Dictionary<string, string>(); dict.Add(“Input1”, “TEST2”); dict.Add(“Input2”, “TEST2”); var client = new HttpClient(); var req = … Read more