hi every body i will be thankfull to u'all if i will get my answer
help me please thanks..

You mean AJAX ?

//////////////////////////////////////////////////////////////////////////
//
// Author: Holly Styles
// Copyright: Weblogik 2006
//
// Description; basic AJAX framework for ASP.NET projects
//
// Usage:
// Implement two functions to handle successfull and failed requests. 
// In your page create an instance of responseHandler(fnSuccess, fnFail)
// passing references to the above functions in the constructor.  
// call the executeRequester(method, url, cgi, myHandler) function,
//
// Examples:
// function mySuccessHandler(requester){ alert(requester.responseText); }
// function myFailedHandler(requester){ alert("Request failed!"); }
//
// var myHandler = new responseHandler(mySuccessHandler, myFailedHandler)
//
// executeRequester("GET", "YourPage.aspx", "", myHandler);
// executeRequester("GET", "YourPage.aspx", "ID=1&value=value", myHandler);
// executeRequester("POST", "YourPage.aspx", "ID=1&value=value", myHandler);
//
// Compatability:
// IE 6, Firefox 1.5, (opera, safari, etc. should work but not tested)
//
/////////////////////////////////////////////////////////////////////////////
function newRequester()
{
	
	var requester;
	try
	{
		requester = new XMLHttpRequest();
	}
	catch(error)
	{
		
		try
		{
			
			requester = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch(error)
		{
			alert(error);
			requester = null;
		}
	}
	return requester;
}

function executeRequester(method, url, cgi, handler)
{
	var requester = newRequester();
	
	requester.onreadystatechange = function()
		{
			if(requester.readyState == 4)
			{
				if(requester.status == 200 || requester.status == 304)
				{
					handler.success(requester, url);
					handler = null;
				}
				else
				{
					handler.fail(requester, url);
					handler = null;
				}
			}
			return true;
		};
	
	method = method.toUpperCase();
	
	if(method == "GET" && cgi != "")
	{
		url = url + "?" + cgi;
	}	
	
	requester.open(method, url, true);
	requester.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	
	if(method == "POST")
	{
		requester.send(cgi);
	}
	else
	{
		requester.send(null);
	}
}

function responseHandler(fnSuccess, fnFail)
{
	this.success = fnSuccess;
	this.fail = fnFail;
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.