Current location: Hot Scripts Forums » General Web Coding » JavaScript » Page is not storing the data after the postback through javascript

Page is not storing the data after the postback through javascript

Reply
  #1 (permalink)  
Old
New Member
 
Join Date: Oct 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Page is not storing the data after the postback through javascript

Hi,

I have implemented a popup which is displayed 5 minutes before the session is expired.
My application contains asp and aspx pages. Presently I have implemented the solution which is mentioned below.
function pageLoad(sender, args)
{

TimeOutFunction();

}

//Time out function
function TimeOutFunction()
{

setTimeout(
function()
{
//alert("Your session is going to expire in few minute.");
var sessionResponse = confirm('Your session is about to expire! Click OK to continue your session.');
debugger;
if (sessionResponse == true)
{
if ( document.forms(0)== null)
{
location.reload();
}
else
{

document.forms(0).submit();
return true;
}
}
else
{
return false;
}
}

,6000);
}

The function pageLoad is called on master page.
I want to retain the values which are filled in the controls like textbox, dropdown, etc. This is not happening with this code.

Thanks for your help
Mandy
Reply With Quote

Featured Marketplace Scripts (view more)

Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Storing data from form into txt file and reading fraga PHP 12 06-12-09 08:34 PM
Eliminating HTML element ben777 PHP 2 04-17-09 09:02 PM
display output of asp page on remote site with javascript dips Script Requests 1 03-30-09 10:29 PM
adding page breaks when retrieving data... Alith7 Database 0 02-19-09 04:21 PM
retreived data and display data upon choice from first page? benq PHP 0 05-06-06 06:45 AM


All times are GMT -5. The time now is 04:37 PM.
vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.