----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: MVP_mayank Message 1 in Discussion Hi,Krivis Use Timer Object of Java script in your page.... follwing is script which loads page automatically in 5 second ..just add this code in your between <form> </form> tag...and your page will refresh every 5 seconds ... follwing is code ... ----------------------------------------------------------------------------------------------------------------------------------- <script language="JavaScript"> // CREDITS: // Automatic Page Refresher by Peter Gehrig and Urs Dudli www.24fun.com // Permission given to use the script provided that this notice remains as is. // Additional scripts can be found at http://www.hypergfurl.com. // Configure refresh interval (in seconds) var refreshinterval=5 // Shall the coundown be displayed inside your status bar? Say "yes" or "no" below: var displaycountdown="yes" // Do not edit the code below var starttime var nowtime var reloadseconds=0 var secondssinceloaded=0 function starttime() { starttime=new Date() starttime=starttime.getTime() countdown() } function countdown() { nowtime= new Date() nowtime=nowtime.getTime() secondssinceloaded=(nowtime-starttime)/1000 reloadseconds=Math.round(refreshinterval-secondssinceloaded) if (refreshinterval>=secondssinceloaded) { var timer=setTimeout("countdown()",1000) if (displaycountdown=="yes") { window.status="Page refreshing in "+reloadseconds+ " seconds" } } else { clearTimeout(timer) window.location.reload(true) } } window.onload=starttime </script> ----------------------------------------------------------------------------------------------------------------------------------- i found this script : http://www.hypergurl.com/refreshpage.html Hope That Helps !!!!!! Regards, Mayank Pujara ([EMAIL PROTECTED]) see http://spaces.msn.com/members/mayank >From: "vishkris" <[EMAIL PROTECTED]> >Reply-To: "Chennai .NET User Group" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Reg refreshing the webform >Date: Fri, 4 Mar 2005 09:12:05 -0800 > dear friends, I am doing a project in ASP.NET Visual C# application. In that I have a requirement that my webform needs to automatically get refreshed by itself so that the updated database table values are reflected back in the form. Also I have a problem of storing the time in SQL 2000 server. When I try to store the time value in the table which has got a field with datetime datatype, I am getting the date jointly stored with the time I entered. so is there any way to seperate these two and store and how can i achieve this. SO If anybody is there to help me please reply me as early as possible since this is my final year project without any guide. thanx Krivis Find just what you're after with the new, more precise MSN Search - try it now! ----------------------------------------------------------- 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]
