I have seen this many time in many places. And heard many different arguments to validate the reasons for it too. I am talking about having hard coded values or string in your code. It’s not like the people who were coding it don’t know that it’s a bad idea, but sometimes some developers lacks…
Category: Information Technology
Solution for “Saving Changes is not Permitted in SQL Server 2008 RC2 message
I was working with SQL Server 2008 R2 Version and I got hit by saving changes is not permitted …wwhhhaaattt? Seems like you have to look around and find Tools—> Options And you will find this Look there is the “Prevent Saving Changes that…
Regular expression for Price field
I needed a quick regular expression for a money. Below is the JavaScript function that I used 1: function IsValidAddValues() { 2: //debugger; 3: var strPattern = “^[-]@f0([1-9]{1}[0-9]{0,}(\.[0-9]{0,2})@f1|0(\.[0-9]{0,2})@f2|\.[0-9]{1,2})$”; 4: var re = new RegExp(strPattern); 5: var price = $(‘#price’)[0].value; 6: $(‘#addError’)[0].innerText = “”; 7: var errorMessage = “”; 8: 9: if ($(‘#name’)[0].value == “”)…
“Windows Live Messenger: Unable to Connect Error 80040200 Fix”
This is from Peter’s blog. This will work on vista (Make sure you read the whole thing). I stumbled across this fix via a web search in the Live Messenger Blog about a different error code. It worked for me on Windows Vista. 1.) Close Messenger. Go into Task Manager and ensure that the “msnmsgr.exe”…
Many to Many Attribute mappings for nHibernate class
How to use Attibute mapping with a ManyToMany Relationship with nHibernate I have been using nHibernate and MVC to create application for my current client. For different reasons, the development team decided to go with attribute level mapping with entites vs fluent nhibernate or hbm mapping. This document will show you how you can achieve…
MVC2 Validation vs MVC1 validation
If you have worked with MVC and started to move towards MVC2, you know how sweet the validation is. In the past you have to write your custom validation logic and it was clunky and almost hacky. for example if you have a class like this 1: public class ContactUsEntity 2: { 3: public…
New Blog
I have started my new blog with BlogEngine.NET. I did ran into some UI and theme issues. The Problem I was facing when I visit my site, no styles were showing. But if I use a querystring named theme=inove , my theme would show. This was pretty annoying. After much research, I have found my…