Most the time when we work with a list object, finding a newly added items or deleted items becomes a very trivial part of the logic. Sometimes, we endup writing sophisticated logic or loops to get this done. Below code will demonstrate how this can be easily done using LINQ. Lets assume that we have a list as… Read More »
Windows forms application doesn’t allow you change the border color of the controls out of the box. However, this can be achieved by overriding the paint event of the control. Below is the sample for applying the border color for a label. Similar way, you can change the appearance of any control the way you want to. … Read More »
In ASP.NET Web Application when we submit some button to process information in server side, we can disable the button as long the server performing the operation and enable the same one response is back. Most of the developer use Button Enable and Disable properties to enable and disable the button. But as an good practice we can… Read More »
Most of the time we use Visual Studio find combo box ( ) only for search contents with in the solution. But the find combo box is something more than what we know. We can use the find combo box in different purpose like create file, open files, create project, print, open watch windows etc. As for example… Read More »
By default ASP.NET GridView Columns has left alignment text. We can use GridView ItemStyle property with either of GridView BondField or Template Field to change the default alignments.GridView properties,ItemStyle-HorizontalAlign having few set of values, using which we can change the alignments. Above customization is true when you are using Bound Field or Template Field for binding the data… Read More »
Cookies are the small pieces of information that are stored in client system or browser memory and helped as client site state management for an web based application. Generally we can have two types of cookies Persistent Cookies Non Persistent Cookies Persistent Cookies : also known as permanent cookies, which is stored in client hard-drive until it expires .… Read More »
Here is a quick tips to get the list of all active HTTPModules at runtime. We can get the list of all HttpModules from the web.config or from machine.config file. But, what we need to do if we want to get the list of all active HttpModules during runtime? Yes. We can easily get the details with the… Read More »
Use code>DebuggerBrowsable attribute to customize the debugging windows Use DebuggerDisplay attribute to customize the debugging display.