Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a control Web.Control.Image in .aspx file And I have a CheckBox too. I want to add a Image in myImage control when CheckBox.Checked = true and I have a wait_.gif file too. I want to run this wait.gif file before Adding Image in myImage control. After add the image the wait_.gif will hide or show-off or dispose. Just I want to not appear the wait_gif file in the page after adding image in my myImage control. Please, help me as I am a novice programmer in ajax and asp.net.

Thank You.
Posted
Updated 28-Jul-12 21:34pm
v2
Comments
Sergey Alexandrovich Kryukov 29-Jul-12 1:11am    
Why Ajax, exactly? What does it mean: "run ...gif file"?
--SA
UL UL ALBAB 29-Jul-12 1:39am    
Caz, I am a beginner in AJAX. This word is not run this will show .gif file in the page.

I suspect a lot of people posting questions like this, have no idea what AJAX is. AJAX will allow you to get a URL of an image to show, without reloading the page, if the image you load changes, depending on the page settings. But it is not needed to dynamically set the url of an img tag ( which does not care if it was an ASP.NET control on the server ). You can use jquery or straight javascript to set the URL of an image. You can't show a progress control while the image loads, because the browser doesn't get an event AFAIK when the image has loaded, it just loads it right away.

If you're a 'novice programmer', then you should consider taking things at a reasonable pace. You clearly have no idea what AJAX is used for. Either focus on AJAX/javascript, or ( more logically ) focus on ASP.NET or MVC first, and come back to learning client side scripting later.
 
Share this answer
 
Please follow my answer -
Progress bar not working with postback trigger[^].
Follow the MSDN Link given there to understand the concept.
 
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