Tag Archives: ASP.NET

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 »

How to get list of all active HttpModules in ASP.NET?

By | February 3, 2011

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 »

How to pass multiple values using GridView HyperLinkField ?

By | January 29, 2011

While working with GridView in ASP.NET, most of the time we used HyperlinkField column to navigate from one page to different page with some value as argument. In this blog post I have explained how can we pass multiple parameter with HyperLinkField in GridView. To implement this features you need to know about DataNavigationUrlField and DataNavigateUrlFormatString properties of… Read More »

Changing ASP.NET Menu Control Image Pop-Out

By | January 28, 2011

ASP.NET Menu control by default shows an “Arrow” as Pop Out  Symbol.  This images sometimes may not match with your web pages or you may want to changes the default arrow. To Change the pop-out images in ASP.NET Menu control you have to use StaticPopOutImageUrl and DynamicPopOutImageUrl properties. So, based on the images that you provided with static… Read More »

Displaying Custom Messages / Images with NULL Value in ASP.NET GridView

By | January 27, 2011

When we  bind some data source with GridView which contains some fields with NULL value,  ASP.NET renders them as Blank. Sometimes developers use GridView_RowDataBound() to override the NULL value with proper message. But Instead of overriding the value, we can use NullDisplayText to display proper message when the value for that particular field is NULL . Once we… Read More »

ASP.NET Validation Control with Images Notification

By | January 26, 2011

Most of the time we used simple text messages for error notifications when ASP.NET validator  control fails the validation. But the interesting things with ASP.NET validation controls is instead of simple text we can display images as error notification. Not only images we can embed sounds or we can display some html format text as well. To achieve… Read More »