I belive the problem would be accessing the ID (ClientID or UniqueID ) of your Text box in GenericHttpHandler.
But it could be possible if you set the ClientIDMode="Static" as a TextBox Property, if you use ASP.Net 4 and try below code
context.Request.Params("TextBox1")