限制保存asp.net页 [英] Restriction to save asp.net page

查看:49
本文介绍了限制保存asp.net页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,先生,我希望代码限制为
复制并保存asp.net页面

Hi sir i want code to retrict to
copy and save of asp.net page

推荐答案

,但用户可以通过查看页面的查看源复制内容.

如果仍然需要,请检查此提示/技巧
禁用右键单击上下文菜单的剪切,复制,粘贴 [ ^ ]
But user can copy the content by viewing the view source of the page.

If still you want then check this Tip/Trick
Disable right click context menu cut, copy, paste[^]


用户不会知道页面是ASP.NET页面,因为ASP.NET引擎会将相应的HTML呈现给浏览器.因此,除非有人无法访问您的Web服务器,否则您编写的所有重要且不可公开的逻辑仍然是安全的(除非您对.cs文件进行反编译,否则它们仍然是安全的).

我以某种方式觉得您想禁用HTML内容的复制粘贴.您不能真正做到那100%的傻瓜证明.最好的选择是禁用右键单击网页(请在Google上搜索操作方法).但是在浏览器上禁用javascript仍将允许用户复制内容.
如果您仍然非常关注代码,则可以在Flash中创建整个页面,但这并不是一个好主意.

希望这会有所帮助!
A user will not know that a page is an ASP.NET page because ASP.NET engine renders corresponding HTML to the browser. So all the important and non-revealable logic that you have written is still safe unless someone doesn''t get access to your web server (still your .cs files are safe until they are not decompiled).

I somehow feel that you want to disable copy-paste of the HTML content. You can''t really do that 100% fool proof. Your best bet is to disable right click on you web page (please search Google on how to do that). But disabling javascript on browser will still allow a user to copy the content.
If you are still very concerned about your code, create the whole page in flash which is not really a very good idea.

Hope this helps!



导致用户无法保存文件的唯一方法是不将其发送给他们.

The only way to have a user not be able to save a file is to not send it to them.


这篇关于限制保存asp.net页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆