Solved

Is a WebService the best solution for this problem?

Posted on 2011-09-07
2
310 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
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…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

734 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