I normally try to stay away from posting political blog entries, however this time I will make an exception. I am a wholeheartedly Ted Cruz supporter and I hope and pray he is our next president. This video showcases Ted Cruz’s life story.
Unfortunately Microsoft did not incorporate a DataAnnotation to change the default message The value ‘xxx’ is not valid for Property to a custom one.
This is when you create an int or decimal property in your model, you bind it to an input box (TextBoxFor) then try to submit the form, then you get this ugly looking message. Below I show you how to change it to whatever you want.
Recently I had to create an Admin Panel Menu and this is what I came up with.
Below is the code and Fiddle
I always knew there were some missing verses in modern Bible translations when compared to the King James Version (KJV), but never really knew what those verses were, nor bothered to do some research on them. It was until a few weeks back that I intentionally took the task upon myself to do that research and compare modern Bible translations to the KJV.
Since there are a lot of Bible translations out there, I only took a few to compare, more specifically the New International Version (NIV), the English Standard Version (ESV), the New Living Translation (NLT), and the American Standard Version (ASV).
If you are using Nitrous.io as your development environment and choose to go with Bitbucket instead of GutHub, you will notice there is only GitHub integration, no worries, you can still connect Bitbucket to Nitrous.io
You are given the assignment to create a CSV file report, and you say “No Problem, I just get the necessary data from SQL Server and create the CSV file”, however the columns have a max character length and Column13 has more characters than those allowed. How to handle this if you need to report all of the information in Column13?
The answer is to split that row into multiple rows. All columns will be duplicated (into the split rows) except for Column13 which will have the split information. Below I’ll show you how to accomplish this.
Changing the PDF version with iTextSharp is fairly easy, all you have to do is create a stamper and pass an extra parameter with the PDF version you want. Below is the code snippet to accomplish this in C# and VB.NET.