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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -