Solved

Is a WebService the best solution for this problem?

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

757 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now