Reload Image in Image Control Problem!

i have a security image for user registeration,and i use Ajax to change picture when user can't read image,but there is
a problem:when user click "Change Picture" image change only for one time!(Image Create in Physically path,but Previous image Show in image Control)
i think,image control can't reload or physically path isn't refreshed!

thanks for read my problem.

10/29/2008 4:39:23 PM 93655 articles. 6 followers. Follow

4 Replies

Similar Articles

[PageSpeed] 56

Has the new image got the same name?

 If so try using a new name and deleting the old file.

10/29/2008 5:21:10 PM

I think the image is being cached. Add the below code to disable caching



Haissam Abdul Malak
| Blog |
10/29/2008 5:22:00 PM
oh,no haissam!
not correct,i dont know!when i test that in separate button(an button relase image address,others set address again),is correct!
but when use all code in one event of one button,isn't right.
and,may be i change image name every time problem solve,but is not a good idea!
10/30/2008 7:40:07 PM

Hi Ir.WebDeveloper,

You can use the javascript to change the image's url property, it will change the image.

<img id="banner1"/>

   var image;

    function loadbanners(num)
       if (banners==1)
       if (banners==2)
       if (banners==3)

        var tt=document.getElementById("banner1");
        tt.src =image;

Hua Jun Li
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
11/3/2008 7:07:58 AM

Similar Artilces:

Image Control Problem Mobile Web Forms
Converting some code from ASP.NET to ASP.NET Mobile Web. I find the Image Control is not working the same in the Mobile Web forms. I have a PDA application where the user inputs an airport identifier, then returns a .gif image to the PDA of the local NEXRAD radar for that area. Using mobile web forms the first image returned for a session continues to be returned, even though the image on the server has been updated with a new request. So I know a round trip is being made to the server. But locally the PDA picks up the first image generated for the session. I can work around this pr...

VB.NET web form Image control SizeMode
The "PictureBox" control in VB.NET has a property called "SizeMode". This allows you to choose how the image will display in the picture box if it is not the same size as the picturebox. However the "image" control for a VB.NET web form (in an ASP.NET application) does not have such a property, instead all images seem to be set to "StretchImage". I want them to be set to "normal", how can I do this? I thought of building my own user control but this would be silly because there must be a simpler way....

Problem displaying image in Dynamic image control?
 Hi,    I have created a dynamic image control, where I get the imageURL from the database(sql server) by a query as follows:"SELECT  imgurl FROM mytable" .  This query on exceution retrieves the name of the .jpg file stored in the database and assigns it to variable 'qimage'. The dynamic image is created as :                Dim img As New Image                img.ImageUrl = Server.MapPath("~...

shwoing image on image control from web server
hi friends i want to show image on image control which stored in web server directoryi use this code Dim imageByte As Byte() = drGetDesignDetails.GetValue(6)Dim strm As New MemoryStream(imageByte)Dim img As System.Drawing.Imageimg = System.Drawing.Image.FromStream(strm)img.Save(Server.MapPath("myImage1.jpg"))img.Save(Server.MapPath("myImage.jpg"), Imaging.ImageFormat.Jpeg)Image1.ImageUrl = Server.MapPath("myImage1.jpg")it doesn't show me any image nor give me any exceptionimage is thereif replace last line  Image1.ImageUrl = ("/myImage1.jpg&qu...

how to display image from web service in an image control
 Hi, I am using web service to fetch image from the video server, and displayed  in the web application, that is working fine,but I am using               Response.ContentType = "image/gif";              Response.BinaryWrite(arrpicture); but I want to display this image in the image control of the web application.Can any one help me out in this.Thanks,     You can do this using an HTTP Handler, using the same technique outlined...

BUG: Image Controls in UpdateProgess Control: Can not use FindControl() methods to get Image
There is a single UpdateProgress control on the page. as such: <ajax:UpdateProgress  ID="UpdateProgress1" runat="server"   DisplayAfter="100" >         <ProgressTemplate>                <div style="border:2px solid #0099FF; background-color:#EFEFEF; padding:10px; width:200px; height:20px;">               Updating Panel            </div&...

Web Image Control Problem
I placed an image control on my web form and can't get the border property set to none. I don't want that big border around my image. Anyone have any idea what I might be doing wrong? I have tried many different ways including setting it in my css file. I set border to none, width = 0 and tried "Not Set", etc. Nothing seems to get rid of it. Thanks for any help, Steven     paste your code here.....before that check if the border is a part of the image or not.Let the game begin!!Barcode image generation made easy.Writing an ActiveX Control in C#Generating Rel...

problems displaying images in an image control using a dropdownbox
I drag and dropped a dropdownlistbox,a button and an image control on an aspx page.Built my code to allow selection of 6 images via the dropdownlist box.I am getting multiple errors from this code,here are the error messages:"System.Data.Select" is inaccessable due to it's protection levelInvalid expression term "as"Only assignment,call,increment,decrement,and new object expressions can be used as a statementThe name "ImageUrl" does not exist in the current contextThe type or namespace "Case" could not be foundThe type or namespace "End" could not be foundmy code is here: 1 using Sys...

How do you move a system image to a web image control in memory?
Hi,Does anyone know of a method for moving a system image (system.drawing.image) to a web image (webcontrols.image) control without dumping it to disk and then reading it back? I am trying to generate barcode images and display them on a web form from whence they can be printed.Thanks for any suggestions, store the stream of your image in a session/application[identified] object, then render that stream using a generic handler (*.ashx)<asp:Image runat="server" ImageUrl="myImgHandler.ashx?srcID={ to retrieve the stream object...}"  />In your h...

Displaying image from database(image datatype) to image control
Hie all...I'm a newbie at I m currently using 2.0.I m having a problem with displaying images on my web form. Have tried looking thru all codes but i can't find a step by step tutorial for doing so. I understand that in 1.1, the detailsview can automatically be linked to the image field and display the image. But this is not possible now. So, i have decided to just display the image in an image control.from my understanding, 1. retrieve image from database and convert it to temporary image file in a file path. 2. use the image control's imageurl to point to the file....

problem in displaying image on image control when using IE7
Hi,  I have developed a simple Employee Detailed intranet portal using the 2.0 C# with ajax. The project is perfectly working in IE6 and all the images getting displayed on the respective image controls. I tried to execute the same project on IE7 and non of the images are displayed. i don't know the reason. can anyone help me please. very urgent as  i have to submit the project by july to my college. Please. Thanks and regards Narashiman.K Check this thread : Image Display problem in IE7Hope that helps  Techie (...

Problems creating and loading image into a dynamic image control
Hello, I'm having problems loading a dynamic image control in a placeholder control at runtime. When stepping through the method, all seems well. The id is being set properly, the image url is being inserted properly and I add it to the placeholder properly so it seems. When I run the program, the placeholder is empty and no image had been generated. I tried search everywherebut I'm not sure what I'm doing wrong. My code is: int count = 5;Image[] imageStore = new Image[count];for (int i = 0; i < count; i++) { imageStore[i] = new Image();string url = "C:\myPi... problem: i can not view image data for the rest of my table rows except the image for the first row but i can read all the other non image fields for all rows.
Hi i have a table with the following fields imgdata........image imgtitle.........varchar(max) imgType........varchar(max) imgLength.....bigint i have no problem with uploading the image but viewing the uploaded image(s) in a gridview has caused me great pain. The probelm is i have two pages. page1 grabs the image to display and page2 has a gridview that displays the grabed image. I wanted to have an sql statement like SELECT * FROM mytable WHERE incident_id=someValue. IF i have 5 records in this table and i view page2 ...

image and image
// create an image object, using the filename we just retrieved System.Drawing.Image image = System.Drawing.Image.FromFile(Server.MapPath(file)); // create the actual thumbnail imageSystem.Drawing.Image thumbnailImage = image.GetThumbnailImage(64, 64, new System.Drawing.Image.GetThumbnailImageAbort(ThumbnailCallback), IntPtr.Zero);   now my question is how to display this image in my image1 control in (version 1.1) the below line of code is not working.  Image1.ImageUrl=thumbnailImage.ToString();Mark As Answer If my reply helped you. Hi, you can save t...

Web resources about - Reload Image in Image Control Problem! -

Is–ought problem - Wikipedia, the free encyclopedia
The is–ought problem in meta-ethics as articulated by Scottish philosopher and historian David Hume (1711–76) is that many writers make claims ...

The problem with the RBA's terms-of-trade forecasts
Most commodity markets have proved too reactionary to offer much insight into future price developments.

6 problems with the Moto X Play and how to fix them
... every other smartphone and tablet out there, the Moto X Play is not without its issues. Which is why, we've rounded up some of the common problems ...

Apple is working on an iOS app for troubleshooting device problems
... with knowledge of goings-on at Apple’s Infinite Loop HQ,” the in-development application asks customers “basic questions to boil down the problem” ...

Sleeping in on weekends linked to health problems
... morning snoozes (however glorious they may be). Sleeping late on days-off—and other sleep-time adjustments—are linked to metabolic problems ...

Report claims Samsung Galaxy S7 will fix the biggest problem with the Galaxy S6
... Samsung ditched microSD support on the Galaxy S6. Well according to a new report on Monday, Samsung will fix the bigger of those two problems ...

DeAndre Hopkins Having No Problem with Darrelle Revis, Burns Him for 61-Yard TD - Bleacher Report
Many believed Houston Texans wide receiver DeAndre Hopkins would be stranded on Revis Island this Sunday. He hasn’t been—at all...

"So the product is being deliberately misused despite a specific warning label, and y'all are complaining ...
"Nobody was irreparably broken or even like stubbed their toe? BURN BUNCH EMS DOWN. Bomb this company back to the stone age before the hair of ...

Oil Patch Problems: Rigs Down 60%, Production Down 3%, $40-$50 Price Doesn't Work
... has not hand a monthly close below $40 since mid-2004. And $40 to $50 is not even profitable, putting producers into a bind. Oil Patch Problems ...

E. Coli Isn't Chipotle's Only Problem
Brand perception was way down even before the latest outbreak.

Resources last updated: 11/24/2015 4:18:51 AM