Reusing same HttpClient, the right way to call different URI’s with same HttpClient object.

Introduction HttpClient in System.Net.Http is the class provided to send a HTTP request and receive a HTTP response from a URI. I did some research on the HttpClient and found that the class has a problem or rather a disadvantage, though the class implements dispose. Using the class without careful consideration could prove to be a mistake later. Please read this blog post for more details on how wrong use of HttpClient can destabilize the application. I’m will discuss the

Continue Reading

Asp Grid View with custom column for Text box and Button control for update and display

AspGridView

Introduction We use Asp grid view to display various information and we may have come across multiple scenarios where we want to create a grid with text boxes and button in the grid view for each column. To achieve this asp data grid gives us this option with edit item template where we can create a text boxes and also add Edit, Update and Cancel button, but there are a few downside to using edit item template like creating custom

Continue Reading

Log4net rolling file log based on date and file size

Logging is an important part of any application and a developer spends a good amount of time writing code to log. Logging is important as this helps us create a trace of all the events in the application and in turn helps in debugging, identifying and analyzing issues and bugs. Log4net is an open source framework for logging the output in an application. The application framework is released under Apache License, Version 2.0. Log4net provides multiple types of logging techniques.

Continue Reading

Access modifiers and it’s Importance

Access modifiers is one of the important parts of object-oriented programming which is often overlooked. This is used to define and implement some fundamental concepts in object-oriented programming. Access modifiers are keywords used to define the accessibility or scope of type or members. Different programming languages have different access modifiers, but we will look at the access modifiers in c#. What is the importance of Access Modifiers? We need access modifiers to restrict the scope of a type or member,

Continue Reading

Site Footer