Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 8th, 2006, 03:09 AM
Friend of Wrox
 
Join Date: Feb 2006
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gaurav_jain2403
Default Page expiry Problem

hello,
I am making an online testing application. When test starts, the user will be send a question. He will be given 30seconds to attempt it. If he doesn't attempt it in given time, next question will be displayed. can anyone tell me how can this page expire in 30seconds?What events will be triggered?Any code for it?Any help will be appreciated.

Gaurav
__________________
Gaurav
 
Old February 8th, 2006, 09:25 AM
Authorized User
 
Join Date: Oct 2004
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Keep a count with Javascript for 30 seconds.
And do a automatic posting after this 30 seconds.

 
Old February 16th, 2006, 04:39 AM
Friend of Wrox
 
Join Date: Feb 2006
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gaurav_jain2403
Default

Thank you. I am trying to do this. How can I do automatic posting. I want that if user doesn't attempt a ques in 30 secs then the current data will be saved in a session then I want to connect to database and retrieve next ques from it and that que will be displayed to user. I cannot call any server-side method from client-side javascript. So, How can I do this?

Gaurav
 
Old February 20th, 2006, 08:21 AM
Authorized User
 
Join Date: Feb 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hai friend,

    try this. It may help you.
    Use the following
    <meta http-equiv = "Refresh" content ="30">
    It refreshes the page. So the old data in the page will be vanished.

 Thanks and regards




Gowtham Sen
 
Old February 23rd, 2006, 08:39 AM
Authorized User
 
Join Date: May 2005
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

But where do i code it?

Regards,
Muskaan.

 
Old February 24th, 2006, 08:27 PM
Wrox Technical Editor
 
Join Date: Dec 2005
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It's a meta tag, so you would put it between your <head> tags.

- A.Kahtava





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with refreshing the page fozia_izhar .NET Framework 1.x 1 March 24th, 2007 02:18 PM
change cookie expiry ab_dev Beginning PHP 0 March 9th, 2006 07:21 PM
Automatic Expiry of Page problem. gaurav_jain2403 VS.NET 2002/2003 0 February 6th, 2006 02:04 PM
session expiry venkhk JSP Basics 1 February 17th, 2005 02:48 PM
asp.net webpage expiry? imsuneeta General .NET 1 January 8th, 2005 08:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.