----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: Chakravarthy Message 2 in Discussion Hey, First thing is, there is nothing like timer in ASP.NET. Reason being, all the pages are disconnected in nature. Secondly, you can implement what you are asking for in couple of ways. Let me put the explanation in two topics Topic 1) How to post back the page and redirect to another page in a specified time Topic 2) Capturing Time spent by user at anygiven page Topic 1 Solution ) There is a "Meta Refresh Tag" with the help of "Content" attribute value in seconds, you can post back the page to the server. The following example will refresh the page for every 5 seconds. Ex: <meta httpequiv="refresh" content="5"> All you have to do is capture during the page load or page render to see for action from the user. If refresh is due to user action then do what you want to do, else redirect the user to any other page that you want to. Topic 2 Solution ) With the help of timer event of jscript you can capture the time spent by the user at any given page. But this is very simple by implementing the timer script on the client side and while submitting the page just pass the difference between times of page load and page submit. Hope this will help. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
