I have a bunch of text boxes and a save button to update something. When I click "Save" I have code that determines whether they are correctly filled in, in the code behind file.
If they are not correctly filled in, I want to display an error message in the form of an alert.
What is the best way to do this? Pressing the button obviously makes the page postback, so I thought about adding something to the url like mypage.aspx?errormessage=blahblah but I don't know if this is the best way or even how to do it...
Any suggestions?