Tag: c#
-
WinRT WebView with Custom User-Agent
Saw a conversation on Twitter about this and thought I’d post a quick snippet. If you want to open a website in a WebView control with a fake User Agent, here’s the code to do so: [code language=”csharp”] HttpRequestMessage httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, new Uri(“http://facebook.com”)); httpRequestMessage.Headers.Append(“User-Agent”, “Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML,…
-
Introduction to Responsive Design with Bootstrap and ASP.NET MVC5

The following is a presentation that I gave December 3rd for the Schaumburg Microsoft .NET Technologies meetup: [office src=”https://onedrive.live.com/embed?cid=E1984F7688EE5F55&resid=E1984F7688EE5F55%21142536&authkey=ANKLCswtShRln70&em=2″ width=”300″ height=”150″]
-
Windows Azure Mobile Services – Slides from Chicago Windows Developer Group
On October 3, 2013 Adam Hoffman from Microsoft gave a talk about Windows Azure Mobile Services at the Chicago Windows Developer Meeting. It was a great talk with a lot of great discussion! Here are the slides from the talk: [office src=”https://skydrive.live.com/embed?cid=E1984F7688EE5F55&resid=E1984F7688EE5F55%217949&authkey=AMiQG7KXAcF6oCU&em=2&wdAr=1.7777777777777776″ width=”610″ height=”366″]
-
Windows Phone Dev Tip: UI Update From Thread Helper Function
Earlier today I saw a nice post by Wei-Meng Lee with a tip on how to update the UI from an asynchronous thread in Windows Phone (thanks to Ginny Caughey). After reading it, I decided to whip up a little helper function that I thought others might find useful: Without further ado, here is the…
-
ASP.NET: RadioButtonList in Repeater in UpdatePanel – Stopping Full Postback
I came across an issue today where a RadioButtonList (with AutoPostback==true) inside a Repeater inside an UpdatePanel was causing a full page postback instead of a partial postback. Apparently this is due to a change in how ClientIDs are generated in .Net 4+. The workaround is to set ClientIDMode=”AutoID” on the RadioButtonLists.
-
How to Use the PhotoChooserTask
This is a quick post to show some code around how to use a PhotoChooserTask for Windows Phone programming: private BitmapImage OriginalImage = new BitmapImage(); private void btnAddPicture_Click(object sender, EventArgs e) { PhotoChooserTask pix = new PhotoChooserTask(); pix.Completed += new EventHandler<PhotoResult&rt;(OnCameraCaptureCompleted); pix.ShowCamera = true; pix.Show(); } private void OnCameraCaptureCompleted(object sender, PhotoResult e) { if (e.TaskResult…
You must be logged in to post a comment.