Sunday 16 August 2015

Disable Right Click on Web Page Using Asp.Net

Disable Right Click on Web Page

Web Page Right Click Disable on Run Time Using in Asp.Net.

                          Download Coding
                              
                                            Download

                                  DEMO


              
                 HTML CODING

<html xmlns="http://www.w3.org/1999/xhtml"  oncontextmenu="return Disable();">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        function Disable()
        {
            alert('Right Click Disabled');
            return false;
        }
        </script>
</head>
<body >
    <form id="form1" runat="server">
    <div>
    </div>
    </form>
</body>

</html>

                       Or 


<html xmlns="http://www.w3.org/1999/xhtml"  oncontextmenu="return false;">
<head runat="server">
    <title></title>    
</head>

      // or

<body oncontextmenu="return false;>

    <form id="form1" runat="server">
    <div>
    </div>
    </form>
</body>
</html>







0 comments:

Post a Comment