ASP.NETÖÐ×Ö·û´®½øÐÐMD5¼ÓÃÜ
×î½üÔÚ¿´¡¶asp.netͨÓÃÄ£¿é¼°µäÐÍϵͳ¿ª·¢ÊµÀýµ¼º½¡·£¬ÆäÖÐÓõ½ÁËMD5¼ÓÃÜ£¬´úÂëÈçÏ£º /// <summary>
/// ×Ö·û´®¼ÓÃܺ¯Êý
/// </summary>
/// <param name="strInput">ÊäÈë±»¼ÓÃܵÄ×Ö·û´®</param>
/// <returns>¼ÓÃܺóµÄ×Ö·û´®</returns>
public static string Encrypt(string strInput)
{
//ת»»ÎªUTF8±àÂë
byte[] b = System.Text.Encoding.UTF8.GetBytes(strInput);
//¼ÆËã×Ö·û´®UTF8±àÂëºóµÄMD5¹þÏ£Öµ£¬²¢×ª»»Îª×Ö·û´®
MD5 md5 = new MD5CryptoServiceProvider();
return System.Text.Encoding.UTF8.GetString(md5.ComputeHash(b));
}
ÔÚIEϲâÊÔÁË£¬ÔÚÊý¾Ý¿âÀï¿´µ½µÄȷʵÊǼÓÃÜÖ®ºóµÄ×Ö·û´®¡£
ÏÖÔÚ¿¼ÂǵÄÎÊÌâÊÇ£¬¸ÃÈçºÎʵÏÖ½âÃÜ£¿
Ïà¹ØÎĵµ£º
ÎÒÓÐÒ»¸ölogin.aspxµÄÒ³Ãæ,¼ÙÈçµÇ¼³É¹¦ºó¾Í»á×Ô¶¯Ìø×ªµ½index.htmlµÄ¿ò¼Ü.
index.htmlÓÐÈý¸öÒ³Ãæ,top.aspx,left.aspx,main.aspx,È»ºóleft.aspxÀïÃæÏÔʾÓû§ÐÅÏ¢
¼ÙÈçÔÚleft.aspxÀïûÓÐSessionµÄ»°,»á·µ»Ølogin.aspxÒ³Ãæ,¶ø²»ÏÔʾindex.htmlÒ³ÃæÀïµÄÈκÎÒ»Ò³.
ÎÒÏÖÔÚµÄÇé¿öÊÇûÓÐSessionµÄʱºò»¹ÊÇÔÚi ......
1.ÉèÖÃweb.configÎļþ.
<system.web>
......
<globalization requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN" fileEncoding="gb2312" />
......
</system.web>
»òÕߣº
aspxÎļþÖÐ:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"&g ......
suggest.jsÎļþ£¨ÔÚÒýÈësuggest.jsÎļþǰÐèÒªÏÈÒýÈëjquery-1.4.2.min.js£©£º
$(function() {
var k = -1;
//¸ø²éѯÎı¾¿ò°ó¶¨click keyupʼþ£¬½øÐÐÕâÁ½¸öʼþ£¬×Ô¶¯²éѯÊý¾Ý
$("#FrmChangshang").bind('click keyup', function(event) {
//»ñÈ¡¼üÅ̲Ù×÷ʼþ´úÂë
var keyc = event ......
1.//µ¯³ö¶Ô»°¿ò.µã»÷תÏòÖ¸¶¨Ò³Ãæ
Response.Write(" <script>window.alert('¸Ã»áԱûÓÐÌá½»ÉêÇë,ÇëÖØÐÂÌá½»£¡')
</script>");
Response.Write(" <script>window.location
='http://www.51aspx.com/bizpulic/upmeb.aspx' </script>");
2.//µ¯³ö¶Ô»°¿ ......
Online active users counter in ASP.NET
With this tool which is written for ASP.NET, it is possible to count the number of online users, members and guest users in web sites.
Installation
The tool installation is very simple and only takes a few minutes.
Step one - Add Reference:
After downlo ......