Lazycoder

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

Share and Enjoy:
  • del.icio.us
  • DotNetKicks
  • DZone
  • Reddit
  • Digg
  • StumbleUpon
  • LinkedIn
  • Facebook
  • FriendFeed
  • HackerNews
  • Netvibes
  • Posterous
  • Tumblr
  • Twitter
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.