Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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λ¼ÓÃܽ


Ïà¹ØÎĵµ£º

C# post±íµ¥

2010Õâ¸öÔªµ©Ì«ÎÞÁÄÁË£¬ÓÚÊÇÕÒÁ˸öÆæ¼£ÓÎϷ˽·þË££¬ÔÚÍæµÄ¹ý³ÌÖз¢ÏÖ×ÜÊÇÒªµÇ¼µ½ÍøÕ¾ÉÏȥתÉú¼ÓµãÖ®ÀàµÄ²Ù×÷£¬1´Î2´Î»¹ºÃ£¬100´ÎÄã¾ÍÓôÃÆÁË£¬ÓÚÊÇ×Ô¼ºÏëд¸ö¼òµ¥µÄ³ÌÐòÀ´×ö¡£
ÒÔϾÍÊÇ´úÂ벿·ÖÀ²£º
£¨ÐèҪעÒâµÄÊÇWebClientµÄCookie²¿·Ö£©
using System;
using System.Collections.Generic;
using System.ComponentMo ......

C#¾«Ë衾Ô¶ùÔ­´´¡¿µÚËĽ² GridView 72°ã¾ø¼¼

˵Ã÷£º×¼±¸³öÒ»¸öϵÁУ¬Ëùν¾«Ëè½²C#ÓïÑÔÒªµã¡£Õâ¸öϵÁÐûÓÐÏȺó˳Ðò£¬²»¹ý¾¡Á¿×öµ½¾«¡£¿ÉÄܻ᲻¶ÏÔöɾÕûÀí£¬±¾ÏµÁÐ×îԭʼ³ö´¦ÊÇcsdn²©¿Í,лл¹Ø×¢¡£
C#¾«Ëè
µÚËĽ² GridView 72°ã¾ø¼¼
×÷ÕߣºÇåÇåÔ¶ù
Ö÷Ò³£ºhttp://blog.csdn.net/21aspnet/           ʱ¼ä£º2007. ......

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ÀïÅäÖÃһϣ¬Èà ......

¼àÊÓ ASP.NET Ó¦ÓóÌÐòÐÔÄÜ


ÓÐÐí¶à¹¤¾ß¿ÉÒÔ°ïÖúÄú²âÊԺͼàÊÓ Web Ó¦ÓóÌÐòµÄÐÔÄÜ¡£ASP.NET °üÀ¨¶à¸öÐÔÄܼÆÊýÆ÷£¬¿ÉÒÔʹÓÃÕâЩÐÔÄܼÆÊýÆ÷À´¸ú×ÙÓ¦ÓóÌÐòµÄÖ´ÐС£Äú»¹¿ÉÒÔʹÓÃÄÚÖÃµÄ ASP.NET ¸ú×Ù¹¦ÄÜÀ´¸ú×ÙÒ³»òÓ¦ÓóÌÐòµÄ´úÂëÖ´ÐС£
×¢Ò⣺
һЩ¿ÉÊÓ»¯Éè¼ÆÆ÷°üÀ¨ÓÃÓÚ²âÊÔ ASP.NET Ó¦ÓóÌÐòµÄ¹¤¾ß¡£ÀýÈ磬Microsoft Visual Studio 2005 Ìṩ Applica ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ