"Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another" If you are getting this error probably you are trying to read an non existing column from your query.
Virtual business cards for MCPs
Virtual Business Cards (VBCs) are now available as a new benefit for MCPs. Use VBCs to show off your expertise, knowledge, and achievements–creatively, securely, and interactively. Brand yourself and let everyone know what credentials you hold by using them on the Web or in your e-mail signature. You can start to create your card from […]
Export To PDF
Here is an open source solution for C# PDF export that i want to share. http://sourceforge.net/projects/itextsharp/ Happy coding…
Zipping your files
There is an open source project to use with your projects. It’s easy to use. dotnetzip.codeplex.com Let’s zip a folder 🙂 Happy coding…
A Big step to self documented code
You can always write comment to your codes. But comment itself can be outdated and misleads a developer. So writing self-documented codes must our first aim to make our code more maintainable. In my opinion a big step to achieve self-documented code begins writing if clauses. If a developer understands if clause, he/she understand purpose […]
Build Macros of Visual Studio
If you’re working with lot of projects, or you want to release your DLL to specific location you may need to add some extra actions to to your build. For example. You have project that uses a DLL of another project of another solution. Sometimes you build your DLL in debug mode, sometimes you build […]
Serialize your objects to XML
This is sample application to serializes sample object Output string: Sample class to use:
Firefox status bar and javascript
If you hava a javascript like this: You will see Firefox is not showing “some text” in the status bar. Too see your text you must enable it from “Advanced Javascript Settings” window: Happy coding…
Remove White Space with Regex
Here is a very handy extension method to remove white spaces from strings. 1 public static string RemoveWhiteSpace(this string TextToRemoveWhiteSpaces) 2 { 3 string pattern = "\\s+"; 4 string replacement = " "; 5 string result = Regex.Replace(TextToRemoveWhiteSpaces, pattern, replacement); 6 return result; 7 } Adapted from http://msdn.microsoft.com/en-us/library/xwewhkd1.aspx Happy […]
Think
When we are coding we never forget to use our brain. Always ask ourselves. “Is there another way to do this?”, “What am I doing here?”. If we are copying someone else’s code. We need to understand purpose of the code well. Look at the sample I choose for you and you will understand why […]