Thursday, 22 January 2015

How to show visitor on my website


How to get the count of visitors visiting the website,without having database interaction

Here I will explain how to count number of visitors to website in asp.net using C#  find or get number of visitors for a website in asp.net using C#.

1.  Add the Global.asax  page in your website






2.  add a label in your website page which you wan't to show visiters on .


 No of Visitors : <asp:Label ID="lblCount" runat="server" ForeColor="Black"></asp:Label>


3.  now code in page .cs file of your website

 lblCount.Text = Application["NoOfVisitors"].ToString();

i hope this post is helpfull for you.

 best of luck

No comments:

Post a Comment

Working with 3- Tier Architecture in C#

  Introduction In this article we will learn Use to 3- Tier architecture in C#.NET application. 3-Tier architecture is very famous and ...