This isnt using an update panel but it will/should do the same thing if i understand your question correctly.
JQuery
$('#IdOfYourTextBox').keydown(function()
{
var dataToSend={Send1:$("#IdOfYourTextBox").val(), Method:'CheckDB' };
var opts =
{
url: '<%=ResolveUrl("~/YourCodeBehindFile.aspx") %>',
data: dataToSend,
dataType: 'JSON',
type: 'POST',
success: function (response) {
$("#IdOfYourTextBox").css({"background-color": "green"});
$("#IdOfHiddenReturnMsgDiv").html("Success!");
}
}
$.ajax(opts);
});
Your code behind file
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
if (Request.Form["Method"] == "CheckDB")
{
CheckDB();
return;
}
}
}
public void CheckDB()
{
}