ATLAS Bug w/ImageURL

G

GaryDean

The only way to get a bitmap object into an image control is to set the
ImageURL to a web page that writes the object to the Output stream.

This also worked just fine for me when I put the Image control inside an
ATLAS Update Panel and used I.E. 6 to view the page. Then I.E. 7 came out
and it does not work - the image does not switch (but the aspec ratio
changes to that of the desired image). It also does not work in FireFox
1.0.7.

(I am told that it does work with I.E. 7 if it's running on a windows 2000
client!!!)

I have put an example of this problem up at
http://www.deanblakely.com/ATLASBug.aspx. where I show a simplified example
and have links to the source code.

I hope that someone can help me with this problem.
 
W

Walter Wang [MSFT]

Hi Gary,

I noticed you're using Session to store the image index. I suggest you to
use QueryString to pass the image index:

int myInt = Int32.Parse(Request.QueryString["index"]);

Then you can use "Image.aspx?index=0" to use that image, no need to use
Session to pass the image index.

I've tested it on my side on Windows XP with IE7 and it works correctly for
the AJAX UpdatePanel.

I could send you a working demo project if needed.

By the way, IE7 doesn't install on Windows 2000, it requires Windows XP
Service Pack 2 (SP2), Windows XP Professional x64 Edition, Windows Server
2003 Service Pack 1 (SP1). IE7 is available in Vista.

Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

GaryDean

Walter,
I changed to using a querystring as you advised and it now works! But, I'm
not sure why. It seems the use of a session variable should also work, and,
it does if the user is using I.E.6. Thanks for solving this problem but do
you know why it was failing with a session variable?
 
W

Walter Wang [MSFT]

Hi Gary,

This is probably because the Image.ImageUrl is not changed when you're
using Session to pass the image index. If you pass some QueryString to the
Image.aspx even when you're using Session, you will see the image will be
updated successfully.

Anyway, my opinion is that using QueryString here will be better.

Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top