Server side callback function ajax web service asp.net -
i'm using web service handle ajax request in project. need call server side function count users online when new request proceed.
if want call server side method client side then,you have transform method pagemethod , call method i.e getonlineuser()
client side code; i.e. using javascript.
to enable method pagemethod, add attribute [webmethod]
on top of getonlineuser method in .aspx code behind file.
if using asp.net membership provider call membership.getnumberofusersonline()
.
and if not using membership have implement own custom counter...
Comments
Post a Comment