如何使用C#在asp.net中隐藏代码 [英] how to hide the code in asp.net with c#

查看:77
本文介绍了如何使用C#在asp.net中隐藏代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看过一个只有.aspx页而不有.c#页的项目.这是怎么做的?虽然我们将网站提供给其他方,但是这样做可以隐藏代码吗?请帮忙.

I have seen a project with only .aspx page, without a .c# page. How is this done? While we give websites to other parties is it good to do like this to hide the code? Please help.

推荐答案

我不认为这是隐藏代码.您可以通过取消选中单独文件中的位置代码来添加Web表单.然后,您的C#代码必须在.aspx页中编写.我认为这已经完成了您的项目.您也可以使用dll代替.cs.
I do not think that it is hide the code. You can add a web form with uncheck the place code in separate file. Then your c# code have to write in .aspx page. I think it is done your project. You also can use dll instead of .cs.


通过下面的链接

^ ]
Go through the below link

Here[^]



您可以对所有这些代码使用一个通用的dll来实现.

Microsoft提供了一个Web部署,它将所有代码转换为一个dll文件.因此我们只有aspx页面.您可以在上面搜索.


umesh
Hi,
You can do it using make one common dll for all that code.

Microsoft provide a web deployment that is convert all code into one dll file. so we have only aspx pages. You can search on it.


umesh


这篇关于如何使用C#在asp.net中隐藏代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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