سؤال

am trying to make an image "visible= true" after a submit button is clicked. it's an animated gif replacing the progress bar.I want it to be visible when the user first clicks. I know because of the postback it's not working. I tried using some javascript onclientclick() . I tried using the updatepanel and updateprogress still no luck.any advice on how this is done.

هل كانت مفيدة؟

المحلول

You will ideally need to do this using JavaScript, if you don't want the page to postback.

To do this you will need to make sure the element is on the page but hidden, so do not use the visible="false" property, instead use the css display: none; directive.

Then to show it in javascript, select it using your library of choice and show it. For example, with jquery - $('selector').show()

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top