how can count every link click,any body help me

Posted by Neha-kapoor under ASP.NET on 7/1/2011 | Points: 10 | Views : 6618 | Status : [Member] | Replies : 4
hallo evry one
i want to count every link click
my requirement is
i have one page where many link,like asp.net,vb.net,java, like this...........
now i want when any user click asp.net link then count is start
we want to how many times user visit the link

thanks


Responses

Posted by: A4u_6178 on: 7/2/2011 [Member] Starter | Points: 25

Up
0
Down
Hi,

refer this thread on dotnetfunda.
http://www.dotnetfunda.com/forums/thread4915-need-help-on-creating-no-of-views-of-a-page-functionality.aspx

Thanks & Regards,

Neha-kapoor, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: CS1401 on: 7/6/2011 [Member] Starter | Points: 25

Up
0
Down
Pls specify your question clearly.

...

Neha-kapoor, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Susanthampy on: 7/6/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Refer this links,

http://www.aspxtutorial.com/post/2011/01/11/Number-of-active-visitors-in-aspnet-web-site.aspx


Regards,
Susan

Neha-kapoor, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Lakn2 on: 7/6/2011 [Member] Starter | Points: 25

Up
0
Down
public static int count = 0;

public static int count1 = 0;

void Application_Start(object sender, EventArgs e)
{
Application["myCount"] = count;
Application["myCount1"] = count1;

}
void Session_Start(object sender, EventArgs e)
{
count = Convert.ToInt32(Application["myCount"]);
count1 = Convert.ToInt32(Application["myCount1"]);

Application["myCount"] = count + 1;
Application["myCount1"] = count1 + 1;


}


in linkbutton1_click
int a;
a = Convert.ToInt32(Application["myCount"]);
Label1.Text = a.ToString("0000");

in linkbutton2_click

int a;
a = Convert.ToInt32(Application["myCount1"]);
Label2.Text = a.ToString("0000");


Thanks&Regards
LakshmiNarayana Nalluri.

Neha-kapoor, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response