Archive for the ‘Uncategorized’ Category
Monday, November 30th, 2009
1. Create a WCF Service Library project
2. Create an entity object class .cs.
3. Annotate entity class with [DataContract] attribute.
4. Annotate fields (from class above) you want in the contract with [DataMember] attribute.
5. Next, create a IService.cs interface that has the operations that can be performed.
6. Annotate with [ServiceContract] attribute.
7. Annotate ...
Posted in Uncategorized | No Comments »
Wednesday, July 8th, 2009
This article demonstrates how to implement a masked input box or masked textbox using JavaScript. For example, let's imagine you have a simple HTML form and want to restrict the user to enter on numbers in a Telephone number field. The following code will demonstrate how to to capture the ...
Posted in HTML, Javascript, Uncategorized | No Comments »
Monday, June 8th, 2009
Delegates
The declaration of a delegate type is similar to a method signature.
A delegate is a reference type that can be used to encapsulate a named or an anonymous method. Delegates are similar to function pointers in C++.
Posted in Uncategorized | No Comments »
Monday, June 8th, 2009
The yield keyword signals to the compiler that the method in which it appears is an iterator block. The compiler generates a class to implement the behavior that is expressed in the iterator block. In the iterator block, the yield keyword is used together with the return keyword to provide ...
Posted in ASP.NET C#, C#, Uncategorized | No Comments »
Thursday, December 4th, 2008
Deploying a rails application on Bluehost for the first time is not a fun task, especially if you are fairly new to rails development. I hope the following details may save someone some of the hair-loss inducing troubles I experienced. Having said that I'm happy with Bluehost thus far. I ...
Posted in Uncategorized | 2 Comments »
Saturday, November 29th, 2008
Due to the increasing number of data access strategies being introduced to .NET with little guidance on which to use I decided to create an overview of the different methodologies available. This is really just a cheatsheet for myself but maybe it's useful to others as well...
Posted in ASP.NET C#, SQL Server, Uncategorized | 1 Comment »
Tuesday, June 3rd, 2008
You have a web server running IIS (Internet Information Services), your web server has only one IP address, and you have been using host headers to run multiple websites of the one IP address. Now, you want to configure SSL on one or more of your websites. What to do? ...
Posted in IIS, SSL, Uncategorized | No Comments »
Monday, June 2nd, 2008
This article will demonstrate a complex and real world example of how to implement ASP.NET output caching on portions of your pages. My next article will explain the more difficult task of how to programmatically clear the cache whenever you choose!
Posted in ASP.NET C#, Uncategorized | No Comments »