Showing posts with label disable text selection of any asp.net control. Show all posts
Showing posts with label disable text selection of any asp.net control. Show all posts

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>