Click here to Skip to main content
16,016,750 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
how to disable the view source option in right click menu?
I want not access the my code to unauthorized member.
How to resolve it?
Posted
Updated 6-Jul-11 21:54pm
v2
Comments
CPallini 7-Jul-11 3:55am    
Write a desktop application instead...
:-)

There is nothing to resolve. Not only this is impossible; the whole idea makes no sense.

Be logical. You server side sends some reply in response to HTTP request. By the time the page is loaded by the client's Web browser, HTTP server has no control over client — until next HTTP request. The Web page content is already delivered; the client can do with it anything at all; it's too late to disable anything.

Viewing source code of the page is the same as looking at the page itself, only in it's raw un-rendered text form.

—SA
 
Share this answer
 
v2
Comments
Espen Harlinn 7-Jul-11 13:11pm    
Good point, my 5
Sergey Alexandrovich Kryukov 7-Jul-11 13:30pm    
Thank you, Espen.
--SA
use javascript to disable right click on page unless there is no any other easy option to do that.

or

u can use all html codes on C# file.but its not easy for beginners or intermediate.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900