Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

287
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!