How to change GridView column alignments for dynamic data source ?

By | February 5, 2011

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 »

How to remove a persistent cookies before Expiration time ?

By | February 4, 2011

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 »

Using DebuggerStepThrough attributes to stepped over code during debugging

By | February 1, 2011

By Marking a piece of code using DebuggerStepThrough attribute tells the Visual Studio debugger that, the code block will be stepped over from debugging process. you can mark methods, properties with DebuggerStepThrough attributes where you don’t want to stop your code to break. If there is any break point inside a code section which is marked as “DebuggerStepThrough”… Read More »

Hide Methods from debugger Using DebuggerHidden attribute

By | January 31, 2011

DubuggerHidden attribute tells the Visual Studio debugger that the method is hidden from the debugging process and while debugging. This is quite helpful when you don’t want to go to stepping inside of a method while debugging. When you mark a method with DebuggerHidden() attributes, It’s explicitly tells the debugger not to step inside of that methods and… Read More »