i need create charts based on selection of value in dropdown.
i'm pulling value database based on selected value , displaying data in charts , graphs (google charts or java script based charts).
but on calling javascript, code behind method need static.
if method static, data saved on memory , in case of multi user site, users may inappropriate charts.
which means, users gets recent data saved in memory recently.
kindly suggest how overcome issue.
i don't understand why need have static method. it's not strictly necessary.
anyway, if need store data in memory (no matter if it's static method) can use cache application. it's dictionary. then, @ point, need identify user application in order differentiate data in memory. if have authentication module, maybe key can identity of user. if not, send cookie client unique value, datetime.now.ticks.tostring(). can safe way identify user.
all js calls sends cookies. that's way can identify , differentiate data in memory.
greetings
Comments
Post a Comment