Prev: LinqToEntitiesDomainService
Next: ObjectDatasource - preventing DataBinding before I press Button
From: Hemant on 18 Mar 2010 02:30 Hi, I am working asp.net 2005 . I want to save my data into database after every 2 minutes till my application is running. For this I have to call save method after every 2 min so please help to solve this. Thanks , Hemant
From: Andy O'Neill on 18 Mar 2010 05:00 "Hemant" <Hemant(a)nomail.com> wrote in message news:%23pdVOQmxKHA.1548(a)TK2MSFTNGP02.phx.gbl... > Hi, > > I am working asp.net 2005 . I want to save my data into database after > every 2 minutes till my application is running. For this I have to call > save method after every 2 min so please help to solve this. > > Thanks , > Hemant In an asp.net app, you realise the code runs on the server - right? I can't think of any way to do that with javascript. So I reckon you'd need to look at silverlight or activex. I like silverlight..
From: Mark Rae [MVP] on 18 Mar 2010 05:23 "Hemant" <Hemant(a)nomail.com> wrote in message news:#pdVOQmxKHA.1548(a)TK2MSFTNGP02.phx.gbl... > I am working asp.net 2005 . I want to save my data into database after > every 2 minutes till my application is running. For this I have to call > save method after every 2 min so please help to solve this. What "data" are you talking about? -- Mark Rae ASP.NET MVP http://www.markrae.net
From: Mr. Arnold on 18 Mar 2010 05:58 Hemant wrote: > Hi, > > I am working asp.net 2005 . I want to save my data into database after every > 2 minutes till my application is running. For this I have to call save > method after every 2 min so please help to solve this. > You'll have to use Ajax and make a call to a function from client side javascript to get to a method on the codebhind file. <http://www.codeproject.com/KB/aspnet/CallCodeBehindByJS.aspx> You set the timer and call the function. The function called will be going back to the codebehind file to call the Save() method. <http://www.howtocreate.co.uk/tutorials/javascript/timers> <http://www.pageresource.com/jscript/jtimeout.htm> I don't know if you can set the timer in millseconds for 5 minutes, let me know.
|
Pages: 1 Prev: LinqToEntitiesDomainService Next: ObjectDatasource - preventing DataBinding before I press Button |