Click here to Skip to main content
15,889,772 members
Please Sign up or sign in to vote.
2.33/5 (2 votes)
See more:
Hi this is srikanth.

Actually i just want to show the recent viewed items in asp.net using c#.
can you please help me out regarding this querry.



Thanks With Regards

Srikanth.J
Posted

Add Global .asax file into your project



void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
Application["k"] = 0;

}

void Session_Start(object sender, EventArgs e)
{
// Code that runs when a new session is started
Application.Lock();
Application ["v"]=((int )Application ["k"]+1);

Application.UnLock();

}


using cookies with this
in your page ,

Label1 .Text =Convert .ToString ( Application ["k"]);
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900