473,508 Members | 2,327 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript and Postback

Hi everyone,

Is there an easy way to reset a javascript timer whenever there is a
postback? Right now I have it set up to reset during the onload event
but I would also like it to reset during a post back. The purpose is to
send a message to the user after 30minutes of inactivity saying that
their session has ended and redirect to another page.

Kind of thought this fit under asp.net more than javascript.

Thanks for the help!

Sep 21 '06 #1
3 2047
Right now I have it set up to reset during the onload event
but I would also like it to reset during a post back. The purpose is to
send a message to the user after 30minutes of inactivity saying that
their session has ended and redirect to another page.
what do you mean? postback will trigger onload when page comes back.
and your regular logic should just work

Sep 21 '06 #2
Ok then maybe there is a problem with the javascript. I'll look over
it.

Thanks

sonic wrote:
Right now I have it set up to reset during the onload event
but I would also like it to reset during a post back. The purpose is to
send a message to the user after 30minutes of inactivity saying that
their session has ended and redirect to another page.

what do you mean? postback will trigger onload when page comes back.
and your regular logic should just work
Sep 21 '06 #3
On 21 Sep 2006 14:03:26 -0700, ee*******@gmail.com wrote:
>Hi everyone,

Is there an easy way to reset a javascript timer whenever there is a
postback? Right now I have it set up to reset during the onload event
but I would also like it to reset during a post back. The purpose is to
send a message to the user after 30minutes of inactivity saying that
their session has ended and redirect to another page.

Kind of thought this fit under asp.net more than javascript.

Thanks for the help!

Why dont you use the 'session_onend' within global.asax instead of
timers ??? You can display another page (with a message) from
there....and then redirect elsewhere...


Sep 22 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
5424
by: tshad | last post by:
I posted this on the asp.net group, also. I wasn't sure whether this was an asp.net problem or a javascript problem. I have a page that was originally created from a program I found on the net...
12
1902
by: Mark Fox | last post by:
Hello, I am attempting to do something very simple. I have a page MainPage.aspx and a popup window Popup.aspx. When users click on the linkbutton in the popup window I am looking to do some...
2
2383
by: Bruce W.1 | last post by:
There's something I can't figure out. I added some javascript behavior to my datagrid, just like in this article, except in C# instead of VB: ...
21
24406
by: Martin Eyles | last post by:
I am trying to get javascript to cause a page to post back. I have tried calling _doPostBack from my script, but generates an error "object expected". I think this is because the page's script...
2
3212
by: Alan Silver | last post by:
Hello, I have just discovered that if you turn off Javascript, then cross-page posting does not work. The postback goes to the originating page, which basically means that nothing happens. I...
3
5578
by: vinay | last post by:
Hi All I have a page in which i using user control .on user control i using javascript to pop up a message .when i choose wrong date in user control & submits the page it alerts the message of...
4
8858
by: =?Utf-8?B?T3Bh?= | last post by:
Hi, I'm not sure if the title is correct. Here's what I am having trouble with: I have a server side button control where I am calling a javascript function via the OnClientClick property. I...
8
6939
by: Deft.Jab | last post by:
This problem only exists in IE, due to UI restrictions I'm using a href in an error label to bring up a modal popup. I'm using a callback to filter a grid on the popup. The problem: The href...
4
5346
by: Peter | last post by:
ASP.NET I have an application which use ASP.NET Autocomplete extender which works great. But I have a question how to update all the fields on the screen using Ajax. Users starts typing in a...
2
37668
Frinavale
by: Frinavale | last post by:
JavaScript in ASP.NET Using JavaScript in ASP.NET pages can make your application seem to work faster and prevent unnecessary calls to the server. JavaScript can be used to perform client-side...
0
7224
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7120
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7323
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7380
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1553
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.