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

MD5¼ÓÃܵÄÒ»°ã·½·¨(ASP.NET / C#2005)

  /// <summary>
/// ·½·¨Ò»:ͨ¹ýʹÓà new ÔËËã·û´´½¨¶ÔÏó
/// </summary>
/// <param name="strSource">ÐèÒª¼ÓÃܵÄÃ÷ÎÄ</param>
/// <returns>·µ»Ø16λ¼ÓÃܽá¹û£¬¸Ã½á¹ûÈ¡32λ¼ÓÃܽá¹ûµÄµÚ9λµ½25λ</returns>
public string Get_MD5_Method1(string strSource)
{
//new
System.Security.Cryptography.MD5 md5 = new System.Security.Cryptography.MD5CryptoServiceProvider();
//»ñÈ¡ÃÜÎÄ×Ö½ÚÊý×é
byte[] bytResult = md5.ComputeHash(System.Text.Encoding.Default.GetBytes(strSource));
//ת»»³É×Ö·û´®£¬²¢È¡9µ½25λ
string strResult = BitConverter.ToString(bytResult, 4, 8);
//ת»»³É×Ö·û´®£¬32λ
//string strResult = BitConverter.ToString(bytResult);
//BitConverterת»»³öÀ´µÄ×Ö·û´®»áÔÚÿ¸ö×Ö·ûÖмä²úÉúÒ»¸ö·Ö¸ô·û£¬ÐèҪȥ³ýµô
strResult = strResult.Replace("-", "");
return strResult;
}
/// <summary>
/// ·½·¨¶þ:ͨ¹ýµ÷ÓÃÌض¨¼ÓÃÜËã·¨µÄ³éÏóÀàÉ쵀 Create ·½·¨£¬´´½¨ÊµÏÖÌض¨¼ÓÃÜËã·¨µÄ¶ÔÏó¡£
/// </summary>
/// <param name="strSource">ÐèÒª¼ÓÃܵÄÃ÷ÎÄ</param>
/// <returns>·µ»Ø32λ¼ÓÃܽá¹û</returns>
public string Get_MD5_Method2(string strSource)
{
string strResult = "";
//Create
System.Security.Cryptography.MD5 md5 = System.Security.Cryptography.MD5.Create();
//×¢Òâ±àÂëUTF8¡¢UTF7¡¢UnicodeµÈµÄÑ¡Ôñ¡¡
byte[] bytResult = md5.ComputeHash(System.Text.Encoding.UTF8.GetBytes(strSource));
//×Ö½ÚÀàÐ͵ÄÊý×éת»»Îª×Ö·û´®
for (int i = 0; i < bytResult.Length; i++)
{
//16½øÖÆת»»
strResult = strResult + bytResult[i].ToString("X");
}
return strResult;
}
/// <summary>
/// ·½·¨Èý:Ö±½ÓʹÓÃHashPasswordForStoringInConfigFileÉú³É
/// </summary>
/// <param name="strSource">ÐèÒª¼ÓÃܵÄÃ÷ÎÄ</param>
/// <returns>·µ»Ø32λ¼ÓÃܽ


Ïà¹ØÎĵµ£º

dz̸ASP.NETÖеÄÈýÖֻỰ״̬

dz̸ASP.NETÖеÄÈýÖֻỰ״̬
     ³£ÓõÄASP.NETµÄ»á»°×´Ì¬ÖÐÓÐÈýÖÖ.·ÖΪ½ø³ÌÄڻỰ״̬¡¢×´Ì¬·þÎñÆ÷»á»°×´Ì¬¡¢SQL Server »á»°×´Ì¬
   
     ÏÈ̸̸½ø³ÌÄڻỰ״̬£¨Inprocess£©ÕâÊÇÒ»ÖÖĬÈϵÄģʽ£¬µ«ÊÇÖ»ÒªÔÚWeb.configÖнøÐмòµ¥µÄÅäÖþͿɽøÐиü¸Ä£¬¾ßÌå ......

C#¶ÔxmlµÄ²Ù×÷ʵÀýÔ´Âë

À©Õ¹±ê¼ÇÓïÑÔXML£¨eXtensible Markup Language£©£¬ÊÇÓÉW3C×éÖ¯Öƶ¨µÄ¡£×öΪÓÃÓÚÌæ´úHTMLÓïÑÔµÄÒ»ÖÖÐÂÐ͵ıê¼ÇÓïÑÔ£¬XMLÄÚ²¿ÓÐןܶà»ù±¾±ê×¼£¬XML¾ÍÊÇͨ¹ýÓëÕâЩÏà¹Ø±ê×¼µØ½áºÏ£¬Ó¦ÓÃÓÚ¿Æѧ¼ÆËã¡¢µç×Ó³ö°æ¡¢¶àýÌåÖÆ×÷ºÍµç×ÓÉÌÎñµÄ¡£C££×÷ΪһÖÖÐÂÐ͵ijÌÐòÓïÑÔ£¬ÊÇ.Net¿ò¼ÜµÄÒ»¸öÖØÒª×é³É²¿·Ö£¬ËûºÍXMLµÄ¹ØϵÆÄÉî¡£±¾ÎÄ¾Í´Ó ......

asp /asp.net c#Á´½ÓOrcale Êý¾Ý¿âµÄ·½°¸

1£¬ÔÚweb·þÎñÆ÷ÉÏ°²×°OracleÊý¾Ý¿â¿Í»§¶Ë£¬ÕâÊÇÁ¬½ÓOracleÊý¾Ý¿âµÄ»ù´¡£¨µ«£¬²»Ò»¶¨ÊDZØÐëµÄ£©¡£
2£¬ÔÚ¿Í»§¶ËµÄNet Manager ÖнøÐÐÅäÖ÷þÎñµÄÃû³Æ£¬ÅäÖÃÈçͼ£¨ÕâÒ»µã·Ç³£µÄÖØÒªÒÔºóµÄÁ´½ÓÈ«¶¼ÔÚÕâ¸ö·þÎñÃû³ÆµÄ»ù´¡ÉϽøÐеģ©
3£¬ASPÁ´½Ó·þÎñµÄÁ´½Ó×Ö·û´®ºÍ·½·¨ÈçÏ£º
<%
connstr= "Provider=MSDAORA.1;Password=***; ......

asp.net 1.1 µÄÓ¦ÓóÌÐò¼æÈÝfirefox

asp.net 1.1 µÄÓ¦ÓóÌÐò£¬Ä¬ÈÏÊDz»Ö§³ÖfirefoxµÄ
iis»á¸ù¾ÝÇëÇóµÄuser-agent À´ÅжÏä¯ÀÀÆ÷ÀàÐÍ£¬Èç¹ûä¯ÀÀÆ÷´ï²»µ½ÒªÇ󣬷µ»ØµÄhtml»áäÖȾÓÐÎÊÌâ
±È·½Ëµ ¶àÐеÄtextboxÔÚfirefoxϲ»»áäÖȾ³öwidthºÍheight£¬ÊÇĬÈÏ´óС
Ô­ÒòÊÇasp.net 1.1ʱ£¬firefox»¹²»Ç¿´ó£¬Ã»Óб»microsoft×¢Òâµ½
Æäʵ¿ÉÒÔÔÚweb.configÀïÅäÖÃһϣ¬Èà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ