Consume RESTful Web Services in C#

The acronym REST stands for Representational State Transfer, this basically means that each unique URL is a representation of some object. It embraces a stateless client-server architecture in which the web services are viewed as resources and can be identified by their URLs. It

WCF 403 Forbidden Exception

WCF (Windows Communication Foundation) comes with .NET 2.0, and with JSON serialization format with .NET 3.5. The most important DLL is ServiceModel. The thing is, when installing the .NET framework, it doesn

ASP.NET Validation

Validation is pretty essential for a web page with form submission. But even with all the help from Microsoft’s wonderful validation controls, at times some petty details becomes quite annoying problems to solve. This post is to list out some useful resources… Validating ASP.NET Server Controls http://msdn.microsoft.com/en-us/library/aa479013.aspx User Input Validation in ASP.NET http://msdn.microsoft.com/en-us/library/ms972961.aspx ASP.NET Validation … Continued

CheckBox Validation

ASP.NET provides all the wonderful validation controls and perform both client-side and server-side validation. However, to validate a CheckBox, only the Custom Validation Control can be used. Assume you have the following… <span><asp:CheckBox ID=”MyCheckBox” runat=”server” onClick=”if (this.checked) CheckBoxChecked(); else CheckBoxUnchecked();” />Yes, your website is awesome! =) </span> <asp:CustomValidator ID=”MyCheckBoxValidator” runat=”server” ErrorMessage=”Custom Validator” ClientValidationFunction=”ClientValidateMyCheckBox” ValidationGroup=”MyValidationGroup” OnServerValidate=”MyCheckBoxValidator_ServerValidate”>Required.</asp:CustomValidator> … Continued