Jonas Stawski

Everything .NET and More

ASP.NET MVC3 change validation class

If you are using the MVC3 built in validation such as 1: @Html.ValidationMessageFor(m => m.Username) you can easily change the validation by overriding the CSS class field-validation-error like this: ... [More]

Dynamic CSS with ASP.NET MVC and ContentResult

The ContentResult class is of type ActionResult, which means it is used to return text content from Controller Actions. There are multiple uses for the ContentResult, and one use is to create CSS dynamically. One would simply point a style sheet to a... [More]

Programmatically hiding the keyboard in Windows Phone 7 (WP7)

I was looking for a way to programmatically hide the keyboard in WP7 and was searching for some WP7 API method, but couldn’t find one. Then it dawn on me that the keyboard automatically hides when the TextBox control looses focus. So I decided ... [More]

Shapes for Windows Phone 7

So my third WP7 App was published a few weeks ago. I composed a Video so you can see what the game is all about. Hope you like it and support my development by paying a whole dollar! Keep in mind you can try it before you buy. Shapes is a great did... [More]

My Windows Phone 7 App failed… Requirement 5.2.4.c

So I submitted my third app, Shapes, into the WP7 Marketplace and 48 hours later I get an email saying it failed. I read the details and it failed because of requirement 5.2.4.c: If the current page displays a context menu or a dialog, the p... [More]

Lessons Learned, WP7 Advertisement SDK

I would like to share my lessons learned while I was working with the Windows Phone 7 Ad SDK for my textContact Light application. For a more detailed explanation of how to set up your account and the AdControl, download the SDK. While debugging th... [More]

textContact Light is published and ready for Download

My first Windows Phone 7 app is published and ready for download: textContact Light. The FREE app allows you to easily attach phone numbers and emails from your contact list. The app is light, simple, straight forward and easy to use. You can watch a... [More]

Linq To Sql not updating on Context.SubmitChanges()

Tonight I ran into a weird problem that I haven’t seen before. I was getting an entity back from a query, changing some values, and calling the DataContext.SubmitChanges() and the database was not being updated. The code ran fine without any ex... [More]

Updating Rows from one table to another without a relationship

So, I’ve been doing a lot of SQL Scripting lately and I’ve come to a stop when I hit a problem I have never hit before. I had to update ColumnA of TblA with ColumnB of TblB. So my initial thought was to do an INNER JOIN UPDATE. So I started typing:... [More]

Change Windows Phone 7 Panorama’s Control Title

The other day I was playing with WP7 Panorama’s Control and the default Title was HUGE! I wanted to change it, but wasn’t sure how to do so. After reading the docs I found the TitleTemplate property, which allows you to create the template used for t... [More]