Solved

Is a WebService the best solution for this problem?

Posted on 2011-09-07
2
308 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

680 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