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.

Tuesday, June 10, 2008

SW DEVELOPER'S PROFILE

About me: I think I am changing the world, but I am not. I think I am contributing to the Indian economy, but I guess I am not. I think I love my work, but I do not. I think I hate all people who made me earn my engineering degree, and I do. I think I am living, but and most importantly, I am LOOKING for someone Ok...I won't be funny anymore. I am a cool guy with a zeal to enjoy life (If you know me--> "Just stop laughing"

Birthday : The day my PL is about to fire me.

Age : 10111

Here for : web browsing in company hours.

Children : can't be (hey, don't get me wrong here)

Languages I speak : Java, C/C++, 010101110101

Religion: I get holidays on all religious festivals, so I love all religions.

Political view : the guy sitting beside me is a pig

Humor : weekly.

Fashion: Ask my company HR. Btw, I like jeans, t-shirt and a cross-bag.

Smoking: The second greatest pleasure on the earth.

Drinking : The first is this.

Pets: Yeah, my PL looks like a dog.

Living: Common, this is a stupid one. How can this be asked to a software engineer? Believe me, I am living

Hometown : My company (Oh God! Please bring my appraiser to this page)

Webpage: http://naukri.com, http://jobsahead.comß- Isnt it Ultimate?

Passions: searching for the cheapest pub around, cursing my company, looking for other company, remembering my good old college days, worrying about my future.

Sports: quake, CS (Counter Strike), computer chess.

Books : "How to lose weight in 20 days?", "How to live a happy life?", "101 ways to attract a girl", "Java Unleashed", "C++ at your footsteps", Others censored.

Music: Metallica, Pink Floyd, Nirvana, ACDC,BSB and anything depressing.

Tv shows : can't afford one.

Cuisines: Bread Butter, Maggi, anything available within 200 meteres of Home

Regards,
MILIND KANSAGARA.