Change framework used on website without IIS restart
I was currently involved in deploying changes to a website, which had be upgraded to .Net Framework 4, although the IIS setting still existed as ASP.Net 2.0. I thought a simple enough switch in the IIS...
View ArticleSetting up DBMail on SQL Server
Things to checkWhen setting up DBMail on a server you should remember to: create Accounts, create Profiles, give user access to msdb for sending email, set up profile security. Until you have done all...
View ArticleConvert to and from an Enum in C#
Enum ConversionThis is one particular function that I use a lot to keep code neat and simple.From a string: YourEnum foo = (YourEnum) Enum.Parse(typeof(yourEnum), yourString);From an int: YourEnum foo...
View ArticleSimple QueryString retrieval
Simplify getting, validating and setting default value of the QueryStringFor several years, I have repeatedly written the same lines of code to create a property on a code behind page based on a...
View ArticleSet Decimal from Double
I had a very simple issue occur today. I was reviewing the very basics of Linq to SQL and it involved setting a decimal property value on an object to a hard coded value. I changed the hard coded value...
View ArticleUsing Linq To Sql Errors
Add methodThe following code appears on page 6 of "Using LINQ to SQL" by Scott Guthrie. Category category = new Category(); category.CategoryName = "Scott's Toys"; Product product1 = new Product();...
View ArticleUsing Linq To Sql Key Points
The Using Linq to Sql pdf created from the blog series by Scott Guthrie highlights some very interesting stuff and this page is just here to summarise these key features so that I don't forget.Property...
View ArticleSpark in Visual Studio
Add Spark Icon to Visual Studio• Create new folder C:\Program Files (x86)\Spark• Copy “contents” of SparkFile.zip to this folder (copy file and extract)• Double click SparkExtension.reg and ok all...
View Article
More Pages to Explore .....