Tweet When writing a windows service using c# (or vb.net), you can install the service locally using installutil.exe. You can simply just install the service by using a few lines of c# code within your program’s startup. By doing this, you will not be able to use Client Profile of the framework. By changing the Program.cs (main […]
Tweet To “turn off” the trusted certificate check for self-assigned certificates, just add this to the web.config
Tweet There is a need, at times, to prevent the user from clicking a button multiple times. Since ASP.Net already wraps something into the onclick event, you need to change this behavior. Below is the code to do this: btnSave is the name of the button you want to disable during postback.
Tweet To convert String to Enum we just need to use Parse() method.
Tweet Following examples demonstrate how are the format specifiers rewritten to the output. Following examples show usage of standard format specifiers in String.Format method and the resulting output.
Tweet To call the method:
Tweet XSD is a tool that can be used to generate a C# class from a given XML document. This class can then be used to deserialize and process the XML within your code. For my example, I’m using the GetBusinessCardCall from the Shoeboxed.com API. I am currently writing a c# interface to read the data from Shoeboxed. […]