asp.net 加密问题
1:在记事本里面粘贴这个代码:
<%@ Page Language="C#" %>
<%
Response.Write(System.Security.Principal.WindowsIdentity.GetCurrent().Name);
%>
然后把记事本存为identity.aspx并且存到网站根目录下
2:创建例如ABeenKeys的RSA密钥容器
aspnet_regiis -pc "ABeenKeys"–exp
3:确保WebConfig文件里面是这样 <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
4:吧下面代码加入到web.config文件中注意和 <system.net>是一个级别的
<configProtectedData >
<providers>
<add name="ABeenProvider"
type="System.Configuration.RsaProtectedConfigurationProvider, System.
Configuration, Version=2.0.0.0,Culture=neutral, processorArchitecture=MSIL"
keyContainerName="ABeenKeys"/>
</providers>
</configProtectedData>
5:进行加密
1:打开运行键入Cmd
2:cd \WINDOWS\Microsoft.Net\Framework\v2.0.*
3:aspnet_regiis.exe -pef "connectionStrings" "D:\website2" //进行加密
4:aspnet_regiis.exe -pdf "connectionStrings" "D:\website2" //进行解密
这个是对绝对路径才有效
6:授予对 RSA 密钥容器的访问权限
aspnet_regiis -pa "NetFramew
相关问答:
select top 12 * from Product where [id] not in (select top 12 [id] from Product)
这样可以分页,但是我在后面想加个条件
select top 12 * from Product where [id] not in (select top 12 [id] from Prod ......
文件上传时怎样显示进度条 最好给个Demo 谢了~!
用Ajax吧,Ajax有例子
用 ajaxtoolkit 里面的代码,有例子
引用
用Ajax吧,Ajax有例子
顶
http://topic.csdn.net/u/20091010/23/4bb5017a-ac75- ......
asp.net repeater 控件怎么可以取到子控件的值,设置断点在 ItemDataBound 事件怎么没有用的
Request.Form["name"]
楼主你要在把repeater中的 一个属性设置一下才能进入itemdatabound事件
可以 ......
哪位大哥有没有ASP.NET中利用Cookies实现用户自动登录的代码...谢谢了...越详细越好....
什么意思?自动登录?
mark 貌视是存储cookies 我也对cook比较迷糊 关注下
既然你知道用cookies自己动动大脑多好! ......
如题,我把窗口程序设计成一直在打开网页,然后后台在运行程序,我想问如果用户关闭浏览器,后台能否添加事件处理关闭(主要是释放一些资源)
没有可靠的办法。
浏览器是什么?假设你在浏览器地址栏上打入“ ......