Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh problem on a control
Message
 
To
13/01/2010 07:16:30
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01442880
Message ID:
01443682
Views:
34
>This photo is shown by setting the imageUrl property to an aspx page. The refresh doesn't occur when the aspx photo page is shown and then moving to another record that shows another photo the same way. I wonder if there is something special I need to do to remove the ShowPhoto.aspx page and then recall it. If you move to a record with no image and then back to one with an image it works fine. Any ideas?
>Tim

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:
Random rand = new Random();
this.imgBoardPhoto.ImageUrl = @"~/ShowPhoto.aspx?i=" + rand.Next().ToString();
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform