12Dec/050
Because client script is HARD
searchBtn.Attributes.Add("onclick", "if("+searchWords.ClientID+".value == '')
{alert('Please enter a patient last name or MRN before searching'); return false;}");
Just came across this gem in some code I’m working on. I can’t take credit for it unfortunately. Doing client side validation in server-side code would have been a GREAT thing to have on my resume.
These kinds of gems are scattered EVERYWHERE in this code. Wheeeee
