Click here to Skip to main content
15,888,802 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi
I used progress bar according this link

http://www.aspsnippets.com/Articles/Show-progress-bar-on-Button-Click-in-ASPNet.aspx

but this code only working button click, i need also in drop down index change and page load also please do need full according this link.
Posted

Since the ShowProgress function is already attached to the submit button click like:

JavaScript
$('form').live("submit", function () {
    ShowProgress();
});


You can just click the submit button again to trigger it like:-

JavaScript
$("[id*=ddlCountries]").change(function() {
    $('[id*=btnSubmit]').click();
});
 
Share this answer
 
JavaScript
$("#dropDown").change(function() {
    // showYourProgressBar
    $.ajax({
        url: 'url to the server',
        type: 'GET',
        success: function(data) {},
        error: function(xhr){
        console.log(xhr.ResponseText);
        },
        complete: function(){
        // hidYourProgressBar
        }
    });
});


-KR
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900