Here is the sample code with proper comments:
Page.GetPostBackEventReference(txtBox1);
__doPostBack("txtBox1", "TextChanged");
function DoPostBack()
{
__doPostBack("txtBox1", "TextChanged");
}
if(!IsPostback)
{
/...Implementation.../
txtBox1.Attributes.Add("OnChange", "javascript:return DoPostBack()")
}