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:
-
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:
-
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:
-
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…