Thursday, September 30, 2010

How to disable text selection of any asp.net control?

To disable text selection of any asp.net control just put this  style within the head tag

  <style type="text/css">
body
        {
            -moz-user-select: none;
        }
</style>

No comments:

Post a Comment