Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8141943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T12:40:31+00:00 2026-06-06T12:40:31+00:00

Here I need to call a javascript function first and after some time I

  • 0

Here I need to call a javascript function first and after some time I need to call a c# function on the same button click event. Is it possible?

 <asp:ImageButton ID="imgBTNExportPPT" runat="server" Width="15" Height="15" border="0" 
 OnClientClick="JavaScript:exportCharts('JPG');" OnClick="imgBTNExportPPT_Click" ImageUrl="~/Images/PPT_icon.png" />

Any suggestion?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T12:40:32+00:00Added an answer on June 6, 2026 at 12:40 pm

    If by “after some time” you mean something like “after 3 seconds an action has to be executed” then you can use setTimeout setTimeout(functionToCallAfterIntervalToWait, intervalToWait)

    If you want to call a server side method you can use an ajax call inside functionToCallAfterIntervalToWait – leave a comment if you need help with the ajax call

    For an example on how to call your asp.net server method from javascript see this blogpost (google call asp .net server method from javascript for more examples/tutorials)

    Assuming you are using jQuery you would write (using .ajax()):

    $.ajax( { 
    url:"yourAspxPage/NameofTheMethodToCall", 
    data: {"nameOfParameter": valueOfParameter}, 
    success: function (data) {
    //this function will be called after the server side function executes successfuly
    });
    

    If you want that this function call is made after other client side operations make sure to write below (after) the other commands .

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On the click of a button, I call a JavaScript function. After getting the
I need to call a javascript function from my controller in codeigniter.It is possible
First time posting here after having great results searching for other answers on stackoverflow.
I am trying to call the __doPostback javascript function in a asp.net page from
I am using jQuery and JavaScript, I need to call the jQuery function inside
I need to call a Javascript function from the server side in Client side.
OK, I have a function in C++ that I need to call from JavaScript,
I tried this JavaScript but it doesn't work - here I need to change
<%= Html.Trirand().JQGrid(Model.OrderGrid,Grid1)%> I need to call this using javascript? Can anybody tell me? <%=
Can I call javascript function from MVC controller action (not from view page) and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.