autosave

Hi together,

is it possible to implement a trigger or sth else which sends on client side all data displayed in several gridviews to the server for example all 30 minutes?

thanks in advice
GaialaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CutSackCommented:
Hi Gaiala,

You could juse Javascript on the client page to force the page to submit every 30 minutes using a setTimeout command.

Then in your code behind you would process the grid data to do the update.
function init()
{
    setTimeout("submitPage();", 1800000);  // 1800000 ms = 30 mins
}
 
function submitPage()
{
    // some code here if needed to do anything first
    document.form1.submit();
}
 
Then in your body tag on the page:
 
<body onload="init();">
 
Then in the code behind:
 
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
 
        If Page.IsPostBack Then
 
            GridUpdateFunction()    ' Call whatever function here to update the database.
 
        End If
 
    End Sub

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
GaialaAuthor Commented:

How can I get the data from a programmatically created Gridviews?
0
CutSackCommented:
Hi Gaiala,

How are the GridViews initially populated? Is it via a DataSet or DataAdapter or some other means?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.