日期:2014-05-18  浏览次数:20366 次

提取config加密信息
在加密config里面的connectionString信息后还未保存,怎样提取该connectionString信息,而且还是加密后的数据;
还有怎样让用户能从服务器上下载该config文件

------解决方案--------------------
UP
------解决方案--------------------
什么意思看不明白,既然能加密为什么不能解?为什么要下载config文件?
------解决方案--------------------
string thepath = 文件的物理路径
System.IO.FileInfo thefile = new System.IO.FileInfo(thepath);
Response.Clear();
Response.ContentType = "application/octet-stream ";
Response.AddHeader( "Content-Length ", thefile.Length.ToString());
Response.AddHeader( "Content-Disposition ", "attachment; filename= " + HttpUtility.UrlEncode(thefile.Name, System.Text.Encoding.UTF8));
Response.WriteFile(thefile.FullName);
Response.End();
------解决方案--------------------
学习一下
------解决方案--------------------
@echo
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -pdf "connectionStrings " "D:\net\CBT "
pause
------------------------------------------------------
用这个加密不就行了
------解决方案--------------------
楼主你想干什么啊!
------解决方案--------------------
学习~!
------解决方案--------------------
顶下 。。。。