Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh problem on a control
Message
De
18/01/2010 16:36:53
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
ASP.NET
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01442880
Message ID:
01444629
Vues:
26
>>SOLVED!
>>I got an idea from another forum and it did the trick.
>>
>>What I did was used a query string to pass the new contributor id to the ShowPhoto.aspx page and that caused the page to always refresh as the url was always different.
>
>(ahem) That's what the code I posted did (except via a random #) ;-) Same idea though.
>
>
>Random rand = new Random();
>this.imgBoardPhoto.ImageUrl = @"~/ShowPhoto.aspx?i=" + rand.Next().ToString();
>
I just went back and re-read your post. It should have been pretty clear.

If you're sure it's not being caused by the Ajax control (simple test - there is a property to temporarily disable Ajax on the control itself), it may be cause because the browser doesn't think anything in the URL has changed, so it doesn't request the image again. You can verify if this is the case by doing something like appending a random value to the image url on each postback, ex:
Timothy Bryan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform