Solved

Is a WebService the best solution for this problem?

Posted on 2011-09-07
2
306 Views
Last Modified: 2012-05-12
I have a modal popup in my ASP.NET web appllication that appears after 30 minutes of inactivity.  After a further 10 minutes the user is redirected to the login page (and logged out).  Witin the popup is a button that the user can press that causes a partial page postback, dismisses the popup, then gives them 30 more minutes before appearing again.

The problem is that on large pages, the postback file size is large.  So, I am looking for an ultra-lightweight way to post, say, just a string to the server and retrieve a string, just to keep the user's session active.

It appears that ASMX WebServices, and ScriptMethods/WebMethods provide this mechanism, however:

1. The logic needs to go into a Master Page (as its applicable to every content page in the application)
2. The solution doesn't necessarily require XML
3. The solution shouldn't allow access from external sites/applications, as this only relevant to the current application and serves no purpose externally.
4. The code-behind logic must be accessible (executed) from a button using javascript, without a full postback

Based on the above, can anyone advice on the best method to use?  I will happily award points for all valid contributions.
0
Comment
Question by:Rouchie
2 Comments
 
LVL 5

Accepted Solution

by:
Didier Vally earned 500 total points
ID: 36495543
I think you can use Webservice (ASP.NET Webservice) or better : ExtJS.
0
 
LVL 25

Author Closing Comment

by:Rouchie
ID: 36521941
Didn't cover much detail...!
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question