Home » C#
How to get rid of BOM when downloading text from azure blob
When you download a text content using CloudBlockBlob.DownloadText() if the blob contains the BOM or byte order mark, then the returned text will contain some additional characters. For example in case of having UTF8 with BOM, you will…
Read More »Default json formatter settings for HttpClient
When using Web API, after getting the response, to convert the response to a typed result, you can use ReadAsAsync<T> method of Content property of the response. Sometimes you need to deserialize the json result based on some…
Read More »Open executable application on client using URL or Link
Sometimes you need a solution to open an application on client machine when user clicks on a link. It’s a common scenario in some cases. For example, you probably have seen mailto: url scheme. When you click on…
Read More »Add custom menu item to IE context menu
You can add custom menu item to IE standard context menu to do some custom actions. For example you may want to add an item to open an executable program and do something based on selected text. As…
Read More »Export SSL Certificate from Azure Web App
You can upload a pfx certificate into your Azure Web App. After you uploaded the certificate, if you open the context menu of the imported certificate, you will see the only available option is Delete. But how you…
Read More »Find Process Id of an IIS Site by Site Name
To find process Id of the worker process which is serving an IIS application, you can simply use Internet Information Service (IIS) Manager console. To do so, first make sure the worker process of the application is running…
Read More »Prevent raising of Validating event of focused control when Closing the form
When you have an event handler for Validating event of a control, if the value of AutoValidate property of the form is set to anything different from Disabled, then Validating event will fire when you try to close…
Read More »