Wednesday, July 23, 2008

Check all checkbox within GridView or DataGrid in Asp.Net

Check all checkbox within GridView or DataGrid in Asp.Net
===================================================

Sometimes we need to handle functionality in our asp.net pages, like when a header
checkbox become selected, all checkbox within a GridView or DataGrid should become selected.
So here, this is the way, by it you can handle this types of functionality.

Suppose your page GridView layout is like:
-----------------------------------------------------
















Use this script to handle checkbox functionalities.
---------------------------------------------------------------



That's it !
Hope you will like it.

Remove HTML string - tag from specified string

Remove HTML string - tag from specified string.
========================================

using System.Text.RegularExpressions;

public static string RemoveHtml(string strSource)
{

string pattern = @"<(.|\n)*?>";

strSource = Regex.Replace(strSource, pattern, string.Empty);


return strSource;
}

That's It !!
Hope you will like it.

What is Side-by-Side Execution in .Net Framework ?

Side-by-Side Execution in .Net Framework
===================================

Using Side-by-Side Execution
-----------------------------------

Side-by-side execution is the ability to install multiple versions of code so that an application can choose which version of the common language runtime or of a component it uses. Subsequent installations of other versions of the runtime, an application, or a component will not affect applications already installed.

Side-by-Side Execution Fundamentals
--------------------------------------------

The way that the common language runtime manages side-by-side execution depends on the type of application you are running. This section applies to all managed executable applications, such as Windows Forms, and executable applications installed locally through an Internet browser. ASP.NET applications and XML Web services, as well as other hosted applications, have their own method of side-by-side execution.