//Take global.asax for make application level variable
void application_start(object sender,Eventargs e)
{
int count=convert.int32(application["hit"]);
count=0;
}
void session_start(object sender,eventargs e)
{
int count=convert.toint32(application["hit"]);
count=count+1;
application["hit"]=count;
}
//pageload
label1.text=convert.toint32(application["hit"]).tostrng();
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment