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

Online active users counter in ASP.NET


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 downloading the attachment, you should add a reference to the project. If you know how to add references please skip this step.
To add the reference, right click on your solution and select "Add Reference" from the menu. Then select the "OnlineActiveUsers.dll" file. Now the reference is added to the solution.
Step two - Change configuration:
Open the "Web.config" file from your project (If this file is absent, right click on your project and from "Add new item", select "Web configuration file"). Then add this code on "web.config" file.
<httpModules>
<add name="OnlineActiveUsers" type="OnlineActiveUsers.OnlineUsersModule"/>
</httpModules>
Note that this code should be placed between "system.web" tags.
Step three - Add some code to global.asax:
Open the "global.asax" file in your project (If this file is absent, right click on your project and from "Add new item", select "Global Application Class"). In the "session_end" event add this code:
OnlineActiveUsers.OnlineUsersInstance.OnlineUsers.UpdateForUserLeave()
If the project is C# the result should be like this:
void Session_End(object sender, EventArgs e)
{
OnlineActiveUsers.OnlineUsersInstance.OnlineUsers.UpdateForUserLeave();
}
After now the tool will count user statistics.
Step four - Access the statics:
To get the statistics, refer to "OnlineActiveUsers.OnlineUsersInstance.OnlineUsers" variable.
Here are some of its important properties:
UsersCount: the number of all online users.
GuestUsersCount: the number of online guest users. This property works only if you have used SetUserOffline and SetUserOnline methods. These methods are explained below.
RegistredUsersCount: the number


Ïà¹ØÎĵµ£º

asp.net ÖÆ×÷°²×°°ü²¢×Ô¶¯°²×°SQLÊý¾Ý¿â

Ò»).´´½¨²¿ÊðÏîÄ¿    
  1.   ÔÚ“Îļþ”²Ëµ¥ÉÏÖ¸Ïò“Ìí¼ÓÏîÄ¿”£¬È»ºóÑ¡Ôñ“н¨ÏîÄ¿”¡£    
  2.   ÔÚ“Ìí¼ÓÐÂÏîÄ¿”¶Ô»°¿òÖУ¬Ñ¡Ôñ“ÏîÄ¿ÀàÐÍ”´°¸ñÖеē°²×°ºÍ²¿ÊðÏîÄ¿”£¬È»ºóÑ¡Ôñ“Ä£°å”´°¸ñ ......

ÔÚasp.netÖÐÔõÑùÌø×ª¿ò¼Ü

ÎÒÓÐÒ»¸ölogin.aspxµÄÒ³Ãæ,¼ÙÈçµÇ¼³É¹¦ºó¾Í»á×Ô¶¯Ìø×ªµ½index.htmlµÄ¿ò¼Ü. 
index.htmlÓÐÈý¸öÒ³Ãæ,top.aspx,left.aspx,main.aspx,È»ºóleft.aspxÀïÃæÏÔʾÓû§ÐÅÏ¢ 
¼ÙÈçÔÚleft.aspxÀïûÓÐSessionµÄ»°,»á·µ»Ølogin.aspxÒ³Ãæ,¶ø²»ÏÔʾindex.htmlÒ³ÃæÀïµÄÈκÎÒ»Ò³. 
ÎÒÏÖÔÚµÄÇé¿öÊÇûÓÐSessionµÄʱºò»¹ÊÇÔÚi ......

asp.net ¶ÁÈ¡Éí·ÝÖ¤Ô´Âë

Ò»°ãÀ´ËµwinformÓ¦ÓóÌÐò½â¾öÕâ¸öÎÊÌâÆðÀ´Ê±ºÜÈÝÒ׵ģ¬webÓ¦ÓóÌÐò¾ÍÂé·³Ò»µãÁË¡£ ÕâÀïÎÒ˵˵ÎҵĽâ¾ö˼·£º Ò»¡¢Äã±ØÒªÓÐÁª»úÐ;ÓÃñÉí·ÝÖ¤ÔĶÁÆ÷Ò»¸ö£¨´øÇý¶¯¹âÅÌ£©£¬ÕâÀïÎÒÓõÄÊǾ«Â×µç×Ó¹«Ë¾µÄiDR200,²¢ÓÐÕâ¸öÔĶÁÆ÷µÄ¿ª·¢½Ó¿Ú˵Ã÷¡£ ¶þ¡¢Ð½¨Ò»¸öwinform¿Ø¼þÏîÄ¿ReadCardControl£¬Ìí¼ÓÒ»¸öÖ÷ÀàReadCard 1¡¢ ÉùÃ÷dllÈë¿Ú ......

C# asp.netÈçºÎʹÓÃMD5¼ÓÃÜ£¬½âÃÜ

using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;namespace md5
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(UserMd5("8"));
Console.WriteLine(GetMd5Str("8"));
}
/**//// &lt;summary&gt;
/// MD5 16λ¼ÓÃÜ ......

ASP.NET³£ÓÃÓï¾ä1 20Ìõ ·Ç³£ÊµÓÃ

1.//µ¯³ö¶Ô»°¿ò.µã»÷תÏòÖ¸¶¨Ò³Ãæ
Response.Write(&quot; <script>window.alert('¸Ã»áԱûÓÐÌá½»ÉêÇë,ÇëÖØÐÂÌá½»£¡')
</script>&quot;);
Response.Write(&quot; <script>window.location
='http://www.51aspx.com/bizpulic/upmeb.aspx' </script>&quot;);
2.//µ¯³ö¶Ô»°¿ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ