Hi Richard,
Hence my post for asking specfically about handlinge time outs without
loosing data on the redirect.
Maybe popup a logon page versus a redirect or something
I think Anon User's suggestion a good way to solve this issue if you
want enable the timeout. You can store data in cookie (client side) or
database (server) or other places where the client can access later.
If you need a simple workaround, I think you can use JavaScript to popup a
new window to temporarily save data. If the timeout is 10 minutes you can
pop up a window after 9 minutes.
In main page, call this JS to popup window:
<script type="text/javascript">
function Popup()
{
var w = window.open("NewWindow.aspx?data=" +
document.getElementById("testinput").value);
}
</script>
<input id="testinput"></div>
Use settimeout if needed:
http://www.w3schools.com/htmldom/met_win_settimeout.asp
In the popup window, call this JS to fill data back:
<script type="text/javascript">
function FillData() {
window.opener.document.getElementById("testinput").value =
GetQueryString("data");
}
function GetQueryString(ji) {
hu = window.location.search.substring(1);
gy = hu.split("&");
for (i = 0; i < gy.length; i++) {
ft = gy
.split("=");
if (ft[0] == ji) {
return ft[1];
}
}
}
</script>
<input onclick="FillData();" value="Fill Data" />
Please let me know if it can resolve this issue and feel free to ask if you
have additional questions.
Regards,
Allen Chen
Microsoft Online Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.
Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.