I have OnClientClick="return confirm('Make Payment?');"
tied to an asp:Button. It works fine, however, prior to popping up this confirm tho, I need to check if a textbox contains a value... How can I do this?
I need a function to return false if the textbox value is null or empty, otherwise i want to present the user with the confirm. It's not necessary if the text is null or empty. In fact if it is I would like to alert the user and return to the form to edit it. Never even showing the confirm.
Can anyone help?
Cheers, ~ck