Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ASP.NET WEB.CONFIGÃô¸ÐÐÅÏ¢¼ÓÃÜѧϰ

½ñÌ죬¿´µ½PETSHOP4.0ÀïµÄWEB.CONFIG¶ÔÊý¾Ý¿âÁ¬½Ó×Ö·û´®¼ÓÃÜ£¬ËùÒÔÌØÒâѧϰ²¢¼Ç¼ÏÂÀ´¡£
.net ÌṩÁË System.Configuration.RsaProtectedConfigurationProvider ¡£
Ê×ÏÈÅäÖÃWEB.CONFIG
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

<configProtectedData>
<providers>
<clear />
<add name="KeyProvider" type="System.Configuration.RsaProtectedConfigurationProvider, System.Configuration, Version=2.0.0.0,Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" keyContainerName="Key" useMachineContainer="true" />
</providers>
</configProtectedData>
<connectionStrings>
<add name="SQL_Northwind" connectionString="Data Source=localhost;Initial Catalog=Northwind;User ID=sa;Password=sa;" />
</connectionStrings>

</configuration>
asp.net ÌṩÁËÃüÁîÐеķ½Ê½£¬¶ÔÆä¼ÓÃÜ£¬ÕâÀïÎÒҲûÓоßÌåʵÀý£¬¾Í²»½²À²¡£
ÎÒ»¹Êǰ´ÕÕ³ÌÐòµÄ·½Ê½£¬Ð½¨Ò»¸öÒ³Ãæ
Ö´ÐÐÏÂÃæµÄ·½·¨£º
 Configuration config = WebConfigurationManager.OpenWebConfiguration(Request.ApplicationPath);
ConfigurationSection section = config.GetSection("connectionStrings");
if (section != null && !section.SectionInformation.IsProtected)
{
section.SectionInformation.ProtectSection("KeyProvider");
config.Save();
}
·½·¨Ö´Ðкó£¬WEB.CONFIG ÎļþÓ¦¸ÃÓÐÀàËÆÒÔϵĴúÂë³öÏÖ£º
 <connectionStrings configProtectionProvider="KeyProvider">
<EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element"
xmlns="http://www.w3.org/2001/04/xmlenc#">
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc" />
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<Encrypt


Ïà¹ØÎĵµ£º

Ò»¸ö¼òµ¥µÄASP.NET +ACCESS µÇ¼

Ê×Ò³£º
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head ......

ASP.NETµÄACCESSÊý¾Ý¿â²Ù×÷Àà

//private string datapatch = ConfigurationSettings.AppSettings["acessconn"];//Êý¾Ý¿âµØÖ· 
private string datapatch = "db/global.asa";//Êý¾Ý¿âµØÖ· 
/// 
/// È¡µÃdataset 
// 
/// ²éѯÓï¾ä 
/// 
public DataSet GetDataSet(string Commandtext) 
{&nbs ......

(ת)ASP.NetÓʼþ·¢ËÍÀà

ASP.NetÓʼþ·¢ËÍÀà
±¾ÎÄת×Ô£ºhttp://www.pcstu.com/program/Asp_net/sl/20070706/52523.html
˵Ã÷£º±¾ÎÄûÓвâÊÔ£¬µ«¿´ÆðÀ´Ëƺõ²»ÄÜÓÃÓÚ·¢Ë͸½¼þ£¬ÈçÒª·¢Ë͸½¼þ£¬¿É²Î¿¼£ºhttp://blog.csdn.net/lff642/archive/2008/07/15/2654346.aspx
using System;
using System.Text;
using System.IO;
using System.Net;
using ......

ASP.NET Web »º´æÔöÇ¿ÐÔÄܺͿÉÉìËõÐÔ

 ASP.NET Web »º´æÔöÇ¿ÐÔÄܺͿÉÉìËõÐÔ
¸ÅÀÀ£º
Æ¿¾±ÏÞÖÆÏÔÖø½µµÍ
¾²Ì¬ºÍ¶¯Ì¬ Web »º´æ
±Ø±¸µÄ¹¦ÄÜ£º¹ýÆÚ¡¢Êý¾Ý¿âÒÀÀµ¹ØÏµ¡¢PDF ²¿·ÖÄÚÈÝÒÔ¼°¸ü¶à¹¦ÄÜ
¶ÔÈ«Çò×éÖ¯µÄÌØÊâºÃ´¦
Web »º´æ·þÎñÆ÷Ⱥ¼¯
Ãâ·ÑºÍÉÌÓýâ¾ö·½°¸
 
Contents
ÎÊÌ⣺ASP.NET Æ¿¾±ÏÞÖÆ
½â¾ö·½°¸£ºASP.NET Web »º´æ
Web »º´æÖ ......

asp.netºÍajaxδ²¶»ñÒì³£´¦Àí»úÖÆ

asp.netºÍajaxδ²¶»ñÒì³£´¦Àí»úÖÆ
    ÕâÀïµÄÒì³£´¦ÀíÖ÷ÒªÊÇÖ¸¿ª·¢ÈËÔ±ÔÚÒµÎñ´úÂëÖÐδ²¶»ñµÄÒì³£¡£Î´²¶»ñÒì³£´¦ÀíµÄÄ¿µÄ£º
    1£ºÔÚÓ¦ÓóÌÐòÓò¼¶±ð¶ÔÒì³£ÀàÐͽøÐд¦Àí£»
    2£ºÔÚ´¦ÀíµÄ»ù´¡ÉÏ£¬¿ÉÒÔ½«´íÎóÐÅÏ¢¼Ç¼ÈÕÖ¾£»
    3£ºÒÔÓѺõķ½Ê½Ìáʾ×îÖÕÓà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ