.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani

Home >> Forum >> Others >> Post New QuestionBookmark and Share Subscribe to Forum

How To Set Visitor Count in Website or Blog

Posted By: Santosh     Posted Date: October 26, 2010    Points:2   Category :Others
Hi All,

How Can i Set Visitor Count in Website or Blog....

Regards
Santosh

Responses
Author: Sajid P K             
Posted Date: October 26, 2010     Points: 5   

Hi Santosh,

please EDIIT heading as well....


Regards,
Sajid P k

Author: Deco             
Posted Date: October 26, 2010     Points: 5   

In the Page load you can add the below code in every page

to get the visitor count.

Page_Load()
{
Application["VisitorCount"] = Convert.ToInt32(Application["VisitorCount"]);
}


you can read the visitor count by getting the value from the application variable

int totalcount = Convert.ToInt32(Application["VisitorCount"]);
Response.Write("Total Visitors count = "+ totalcount.ToString());


Regards,
Deco
Author: krishana singh             
Posted Date: December 14, 2010     Points: 5   

thanks



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend