You seem to select TextBox by ID incorrectly.
$('#TextBox1')
won't return anything since even though your server control ID is
"TextBox1"
, element ID on the client side will be "
[long combination of ids]_TextBox1
". Use
$('#<%=TextBox1.ClientID %>')
construction instead