I have a textbox, and a submit button. Assuming I do some serverside check, and find the textbox contents are invalid, I want to display an error next to the textbox saying 'invalid text'.
Is there a proper way to do this using validation controls, or do you simply have to stick a label on that you unhide when there's an error?
Edit: Hmm, is there a way to trigger the validation yourself though? I'd rather only do one database query rather than two, if they entered valid data.