Hi Mahesh,
We use html,asp server tags, etc in designing our web page, we include different functionality. A Web Browser converts that code to its own understandable DOM language (html, javascript, jquery, css, etc i.e from server level tags to web tags) which we see when we click on "View Page Source". That means we are actually showing the user only UI part of the page, but not the actual logic code.
I think we can restrict user from viewing this.. But, we have some tags with EnableViewStateProperty, Hidden, etc where we can reduce the data of a control that a page holds. It shows encrypted data here.
Some ways to do is: Disable right click of mouse by including a jquery code with OnMouseDown event or setting OnContentMenu to false.
We also have some software's like firebug to view the page source.
To know more on this, check this link:
http://www.htmlgoodies.com/beyond/article.php/3875651/Web-Developer-Class-How-to-Hide-your-Source-Code.htm
Regards,
Awesome Coding !! :)
Mahesh_Chs, if this helps please login to Mark As Answer. |
Reply | Alert Moderator