Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ʵÏÖÍøÒ³ÐÅÏ¢²É¼¯µÄ¼¸µã˼¿¼

×î½ü¹«Ë¾ÐèÒª¿ª·¢Ò»¸ö¼òÀúµ¼È빦ÄÜ£¬ÀàËƲ©¿Í°á¼Ò»òÕßÓÊÏä°á¼Ò£¬Ö®Ç°×¥È¡ÐÅÏ¢ÊÇÀûÓû𳵲ɼ¯Æ÷£¬µ«ÊǼòÀúµ¼È빦ÄÜÐèÒªÓû§µÇ½ÒÔºó²ÅÄÜ»ñÈ¡¼òÀúÊý¾Ý£¬ÎÞÄÎÖ»ºÃ×Ô¼º¿ª·¢ÁË¡£
Ê×ÏÈÊÇÓöµ½µÄÎÊÌâÊÇ£ºÈçºÎʵÏÖÄ£ÄâµÇ½£¿
ÎÒÃÇÖªµÀÒ»°ãµÄÍøÕ¾¶¼ÊÇͨ¹ýCookiesÀ´Î¬»¤×´Ì¬µÄ£¬ÎÒ×¥µÄÍøÕ¾Ò²ÊÇÖ§³ÖÀûÓÃCookiesÀ´ÑéÖ¤Óû§µÄ£¬¹¹ÔìÒ»¸ö ......

ASP.NETÍêÕûѧϰÁ÷³Ì


Èç¹ûÄãÒѾ­Óн϶àµÄÃæÏò¶ÔÏ󿪷¢¾­Ñ飬Ìø¹ýÒÔÏÂÕâÁ½²½£º
      µÚÒ»²½¡¡ÕÆÎÕÒ»ÃÅ.NETÃæÏò¶ÔÏóÓïÑÔ£¬C#»òVB.NET ÎÒÇ¿ÁÒ·´¶ÔÔÚûϵͳѧ¹ýÒ»ÃÅÃæÏò¶ÔÏó(OO)ÓïÑÔµÄÇ°ÌáÏÂȥѧASP.NET¡£ ASP.NETÊÇÒ»¸öÈ«ÃæÏò¶ÔÏóµÄ¼¼Êõ£¬²»¶®OO£¬ÄǾø¶Ôѧ²»ÏÂÈ¥!
¡¡¡¡µÚ¶þ²½¡¡¶Ô.NET FrameworkÀà¿âÓÐÒ»¶¨µÄÁ˽⠿ÉÒ ......

Mix 10 ÉϵÄasp.net mvc 2µÄÏà¹ØSession

Beyond File | New Company: from Cheesy Sample to Social Platform Scott Hanselman in Lagoon L on Monday at 11:30 AM The web has changed and there's a new way of thinking about your applications. You can't just write some HTML and CSS anymore and expect to be the next Twitter. Hear h ......

ASPתASP.NET£¨1£©

      ÓëASPÏà±È£¬ASP.NETÔںܶ෽ÃæÓÐÁËÏÔÖøµÄ¸Ä½ø£¬ÕâЩ·½Ãæ°üÀ¨£ºÐÔÄÜ¡¢×´Ì¬¹ÜÀí¡¢¿ÉËõ·ÅÐÔ¡¢ÅäÖᢲ¿Êð¡¢°²È«ÐÔ¡¢Êä³ö»º´æ¿ØÖÆ¡¢ÍøÂ糡֧³ÖºÍXML Web services½á¹¹µÈ¡£   
      Èç¹ûÄú¾ßÓÐASP   ¿ª·¢¼¼ÄÜ£¬ÔòÐ嵀   ASP.NET   ±à³Ì ......

ÔÚ vs2008Ϊasp.net ajaxÌí¼ÓjsÖÇÄܸÐÖª

ÔÚ
vs2008Ϊasp.net ajaxÌí¼ÓjsÖÇÄܸÐÖª



½ñÌìÕÒÁ˺þã¬ÖÕÓÚ¸ãÇå³þÁË£¬scriptManager¿Ø¼þÖ§³ÖjsÖÇÄܸÐÖª£¬¶ø´ÓÆä¼Ì³ÐµÄtoolkitScriptManager²»Ö§³Ö¡£ÖÁÉÙÔÚ
vs2008b2ÖÐÊÇÕâÑù¡£
ÒªÔÚjsÎļþÖÐÌí¼Óasp.net ajaxµÄjsÖÇÄܸÐÖª£¨ÓëscriptManager¿Ø¼þÎ޹أ©£¬ÔÚjsÎļþµÄ¿ªÍ·Ìí¼ÓÕâÑùÒ»Ðм´¿É£º
//
/<referen ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ