Call CodeBehind javascript function while a process is running

1

The idea is I have a grid in which there is a button on each line. The desired is that when the user presses the button the page is fixed (freeze) and have the order validated. And when the server returns the result back with the page to the initial state.

I already have the code to set and to return to normal with the page. My problem is that when I click the button on one of the grid lines and I call the method to fix the page and to process the request he processes the request and then sets the page. The code I am using is the following:

protected void gv_parks_ItemCommand(object sender,Telerik.Web.UI.GridCommandEventArgs e)
{ 
   if(e.CommandName == "Process"){
         ScriptManager.RegisterStartupScript(this, this.GetType(), "ntmtch", "skm_LockScreen('We are processing your request...');", true);

      int result = ProcessRequest(dados)

      if(result == 0)
      {
           ScriptManager.RegisterStartupScript(this, this.GetType(), "ntmtch1", "skm_UnLockScreen('Sucesso...');", true);
      }
      else
      {
          ScriptManager.RegisterStartupScript(this, this.GetType(), "ntmtch2", "skm_UnLockScreen('Erro...');", true);
      }
   }
}

Does anyone know how to help me? Thanks

    
asked by anonymous 29.09.2016 / 18:47

0 answers