提供asp.net Web应用程序时隐藏代码.

编程入门 行业动态 更新时间:2024-10-27 19:19:10
本文介绍了提供asp Web应用程序时隐藏代码.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在asp和C#中制作了一个Web应用程序.在给客户之前,我想使其编码变得复杂或隐藏.

i made a web application in asp and C#. i want to make its coding complex or hidden before giving to my client. can anyone please guide me hot to do this??

推荐答案

情况很简单:服务器部分发生什么,不需要任何保护,因为它确实从客户的角度来看,甚至不存在.顾名思义,客户端部分的所有内容始终都是完全开放的.服务器部分用于生成内容,该内容将完全下载到客户端.在您尝试执行任何操作之前,用户已经拥有了它.因此,您无法在客户端部分上隐藏任何内容. 但是,您可以对其进行混淆,但要注意两点:为什么?您是否认为您有一些重要的知识要知道任何人都愿意去复印?无论如何,如果您有这样的秘密内容,请考虑在服务器端实现它.
—SA
The situation is very simple: what happens on the server part, does not need any protection, because it does not even exist, from the client''s point of view. And everything on the client part is always fully open, by definition. The server part is used to generate the content which is downloaded to the client side fully. Before you try to do anything, the user already has it. So, you cannot hide anything on the client part. However, you can obfuscate it, but thing twice about it: why? Do you think you have some important know how that anyone would bother to copy? Anyway, if you have such secret stuff, think about implementing it on the server side.
—SA

您可以先发布网站,然后再将其提供给客户. 请遵循此链接中给出的步骤: MSDN:演练:使用发布网站工具部署网站项目 [ ^ ] MSDN:如何:使用发布网站工具部署网站项目 [ ^ ] --Amit Hi, You can just publish your website before giving it to your client. Follow the steps given in this link: MSDN : Walkthrough: Deploying a Web Site Project by Using the Publish Web Site Tool[^] MSDN : How to: Deploy a Web Site Project by Using the Publish Web Site Tool[^] --Amit

如果要创建Web应用程序而不是网站 进行构建->发布 此选项将使您的代码成为dll文件,即您的网站仅包含aspx页面+ bin文件夹中的一个dll,不应有任何aspx.cs文件 If you are creating a web application instead of website Go to build -> Publish This option will make your code as dll file ie your website only contains aspx page + one dll in your bin folder there should not be any aspx.cs file

更多推荐

提供asp.net Web应用程序时隐藏代码.

本文发布于:2023-11-14 14:13:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1587433.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   代码   asp   net   Web

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!