Solved

Is a WebService the best solution for this problem?

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

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