• How to stop a javascript event from bubbling

    February 25, 2010

    Events on any html document bubble from child up to parent calling the handlers on each element until it reaches the Body. In order to stop this from happening you can cancel the bubble by setting the cancelBubble property on the event to true <INPUT TYPE=”TEXT” NAME=”TEXT1″ onclick=”alert(‘TEXT1′);event.cancelBubble=true;”>Name Taken from http://webdevelopersjournal.com/articles/jsevents2/jsevents2.html

    • Share/Bookmark
  • Reducing the size of your ViewState in asp.net web forms

    February 22, 2010

    Very useful article on how to reduce your ViewState size. Also very simple to implement. http://szokelizer.blogsome.com/2006/11/09/how-to-put-controlstate-into-viewstate-and-how-to-put-viewstate-into-session/

    • Share/Bookmark
  • Using RegularExpressionValidator to validate the length of a String

    February 15, 2010

    This post I’ll keep short and sweet. If you are using a Regular Expression Validator you will have the problem that if you use a line break it won’t validate when you write something like ^.{0,n}$ even though the dot is supposed to match anything Apparently the dot isn’t supposed to match new line characters [...]

    • Share/Bookmark
 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org