Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

289
Visualizações
Calling ASP Button click through Javascript taking time to execute

I need your expertise regarding executing ASP.Net button click event from Javascript function taking 3-4 seconds to execute. below is the scenario -

I have 1 ASP.Net button (inside Update panel)

<asp:Button ID="btnSetResponse" runat="server" CssClass="btn" Text="" ToolTip="" Style="visibility: hidden; display: none;" />

then below is the javascipt function from which I'm calling button click event.

function ParseDataandFill()
{
   // get JSON response and store in hiddenfield
   document.getElementById('<%=btnSetResponse.ClientID %>').click();
}

here, when btnSetResponse is called it is taking time 2-3 seconds to perform action.

Below is Button click event code-

Public Sub btnSetResponse_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSetResponse.Click
    Dim ResponseJSON = New JSONData() Dim serializer As New System.Web.Script.Serialization.JavaScriptSerializer() ResponseJSON = serializer.Deserialize(Of JSONData)(hdnResponse.Value.ToString) 
    If ResponseJSON.ReceivedResponseData.Trim <> "" Then
    ddlACNO.DataSource =ResponseJSON.ReceivedResponseData
    End If
End Sub
about 4 years ago · Santiago Gelvez
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda