How to suppress compiler warning using #pragma warning directives in Visual Studio ?

By | January 24, 2011

Sometimes during development you may need to avoid the unnecessary compiler warnings to show in warning window. Though it’s not recommended to suppress the warning explicitly, but during some debugging and analysis of code you may want to hide them for time being. In this post I have explained how you can hide the unwanted warning explicitly by… Read More »

How to expand specific Tree View Node programmatically in ASP.NET ?

By | January 23, 2011

ASP.NET TreeView control is a server side control for displaying data in a hierarchical formats. TreeView  contains multiple nodes and sub nodes. Many times we bind a large number of data with tree view for users to navigate data, pages, or displaying any other details information. If there are many nodes and sub nodes in TreeView, sometime  it’s… Read More »

Display custom messages or images when there is no records in GridView Data Source

By | January 22, 2011

This is a very frequent requirements to display Custom Messages or Images when there is no records in Grid View. I found people used custom code to achieve this. But ASP.NET Gridview having some inbuilt features to do the same.   You can use EmptyDataTemplate using GridView to display any custom message or Images or even web controls to… Read More »

How to Use ASP.NET “Property Pages” to create or host a Silverlight application in ASP.NET Site ?

By | January 21, 2011

While creating a Silverlight application in Visual Studio 2010, after providing the application name, IDE asked for whether you want to host the Silverlight application in a new ASP.NET web site or not. If you select the “Ok” button , Visual Studio will create a ASP.NET Site to host the corresponding Silverlight Application. So whenever you will run… Read More »

How to use Runtime Objects in Watch Window during debugging in Visual Studio ?

By | January 20, 2011

During debugging in visual studio we generally used watch window to explore the objects, values, properties and other nested objects as a tree structure. Most of the time we used watch window to only view the values or change the current object properties values to see the effects of changed object during debugging. And most of the time… Read More »

How to Display “Yes” or “No” Instead of Checkbox while binding Boolean value with GridView ?

By | January 19, 2011

If you are binding some data source in grid view which having any field type of Boolean then Grid View Rendered it as “Checkbox” . But sometime we may required to display either Yes/ No or “1/0” instead of Checked/ Unchecked Text Box.   Here is an quick tip which described how you can override the checkbox to your… Read More »