PDA

Click to See Complete Forum and Search --> : progress bar


OrderAdmin
Mar 12th, 2003, 06:16 AM
we have a web application. there we have two aspx forms. the first form contains a button and a flash-progressbar which initial state is visible=false. if we press the button we want to redirect to the second form. this redirect-process takes a very long time and so we want to display the progress bar.
in the button_clicked event method we set the progressbar visible and redirect to the page but the bar will not be displayed.

plz help, we need it for a school project...

Musician
Mar 12th, 2003, 02:08 PM
You will need client side javascript to do this:-

Assuming your command button had an id of Submit1 and your Progress Bar had and id of PB1 then in your code behind add a client side onclick attribute:-

Submit1.Attributes.Add("OnClick", "Javascript: document.GetElementByID("PB1").style.visibility=show;")

You'll have to check up on javascript as I'm not sure about that code nor is it multi-browser compatible.