Not sure if you're still dealing with this or not. I think ASP.NET's built-in ValidationGroups should solve your problem. Simply ensure that the TextBox and the submit button are part of the same ASP.NET validation group. When the button is clicked, ASP.NET should check to see if the page is valid before submitting.
Hope that helps-