Creating a Simple Hit Counter with ASP.NET 4.0 and C#
This tutorial will demonstrate how to create a simple system to count hits on pages using a database with ASP.NET 4.0 and C#. STEPS : Just follow the steps and get result easily. STEP-1 : CREATE NEW PROJECT Go to File > New > Project > Select asp.net web Form Application> Entry Application Name > Click OK. STEP-2: ADD A DATABASE. Go to Solution Explorer > Right Click on App_Data folder > Add >New Item> Select SQL Server Database Under Data > Enter Database name > Add. GO /****** Object: Table [dbo].[tbl_Hits] Script Date: 06/03/2014 16:04:51 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[tbl_Hits]( [Hit_Id] [int] NULL, [Hit_Name] [nvarchar](50) NULL, [Hits] [nvarchar](50) NULL ) ON [PRIMARY] GO STEP-4:ADDING THE COONCETING STRING <connectionStrings> <add name="ErpConnection" connectionString="Data Source=MANVENDRA;Initial C...