Tag Archives: ASP.NET

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 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 »

How to update controls which are outside of updatepanel during partial page rendering?

By | January 16, 2011

we generally used update panel to do the partial page postback, which means to postback the controls which are only inside the update panel. For achieve this we simply call Update() method for the corresponding Update Panel. This thing is quite simple when we are trying to update any control which is inside the updatepanel itself. But, The… Read More »

How to pass external values with GridView HyperLinkField which are not part of your Gridview DataSource member ?

By | January 15, 2011

In this post, I am going to explain how you can pass some external values as parameters with the hyperlink field in GridView. DataNavigationUrlField use only those fields as parameter which are the part of GridView DataSource. Now the problem comes when you want to pass some other variables as parameter which are not part of the DataSource.… Read More »

How to sort ASP.NET DropDownList based on DataValueField or DataTextField using LINQ?

By | January 8, 2011

Sorting ASP.NET Dropdown list is very common requirement for any of the web application development. To Implement this features sometimes developers used to iterate through each and every item and create a sorted list of element then reassign the same source to dropdownlist or sort the element at source itself. But this thing can be done easily using… Read More »