created a table in database named " hit "
then
code on Page Load
<pre lang="vb">If Not IsPostBack Then
Dim co, jo As Integer
cn.ConnectionString = "server=localhost; user id=root; password=; database=**"
cn.Open()
co = 1
s = "select * from hit where id='" & co & "' "
cd = New MySqlCommand(s, cn)
r = cd.ExecuteReader()
r.Read()
jo = CInt(r("count").ToString())
Label5.Text = r("count").ToString()
r.Close()
cn.Close()
Dim c As Integer
Dim s1 As String
cn.ConnectionString = "server=localhost; user id=root; password=; database=**"
cn.Open()
co = 1
c = jo + 1
s1 = "update hit set count='" & c & "' where id='" & co & "'"
cd = New MySqlCommand(s1, cn)
cd.ExecuteNonQuery()
cn.Close()
End If
</pre>