AJAX更新面板与I.E.7问题 [英] AJAX Update Panel w I.E.7 Problem

查看:99
本文介绍了AJAX更新面板与I.E.7问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的一个aspx页面上有一个UpdatePanel,里面有一个ListBox,Image和一个

TextBox。当在列表框中选择一个项目时,我的代码隐藏

文件在图像中显示一个新图片,在TextBox中显示新文本。它是美元在I.E. 6.没有回发 - 没有额外的代码。


但是......它在I.E.中无效。 7(也不是FireFox 2.0)。文本框

刷新但图像不刷新(但是

图片的宽高比确实会根据新选择的图片而改变。)

>
您可以在IE6上看到这项工作,或者在IE浏览器中失败 http://www.deanblakely.com/FamilyPhoto.aspx


IE中可能导致此故障的原因7和FireFox 2.0浏览器?


-

问候,

Gary Blakely

I have an UpdatePanel on one of my aspx pages with a ListBox, Image, and a
TextBox inside it. When an item is selected in the list box my codebehind
file displays a new picture in the image and new text in the TextBox. It
works wonderful in I.E. 6. No Postback - no extra code.

BUT... It does not work right in I.E. 7 (nor FireFox 2.0). The textbox
refreshes but the image does not refresh (however the aspect ratio of the
picture does change according to the newly selected picture.)

You can see this work with I.E.6 or fail with I.E.7 at
http://www.deanblakely.com/FamilyPhoto.aspx

What can be causing this failure in the I.E. 7 and FireFox 2.0 browsers?

--
Regards,
Gary Blakely

推荐答案

一些可能的想法。如果你的图片直接从

列表框中提取他们的文件名,则列表框值没有正确格式化,因为他们

中有空格,这是非法的。例如:05-2003 memphis 034.jpg

不是有效的文件名。 05-2003%20memphis%20034.jpg有效。确保

您正在对它们执行UrlEncoding。我听说过这个

和IE 7有些问题,而IE 6更宽容,并做了很多自动修正。

-


希望这有帮助,

Mark Fitzpatrick

前微软FrontPage MVP 199?-2006


GaryDean < Ga ****** @ newsgroups.nospamwrote in message

news:u%**************** @ TK2MSFTNGP03.phx.gbl。 ..
Some possible idea. If your pictures are pulling their filenames from the
listbox directly, the listbox values aren''t properly formatted since they
have spaces in them, which is illegal. For example: 05-2003 memphis 034.jpg
is not a valid filename. 05-2003%20memphis%20034.jpg is valid. Make sure
that you''re performing UrlEncoding on them. I''ve heard some issues with this
and IE 7 whereas IE 6 was more forgiving and did a lot of auto-correcting.
--

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006


"GaryDean" <Ga******@newsgroups.nospamwrote in message
news:u%****************@TK2MSFTNGP03.phx.gbl...

>我的一个aspx页面上有一个UpdatePanel,里面有一个ListBox,Image和一个
TextBox。当在列表框中选择一个项目时,我的代码隐藏
文件在图像中显示一个新图片,在TextBox中显示新文本。它在I.E.中运作得很好。 6.没有回发 - 没有额外的代码。


但是......它在I.E.中无效。 7(也不是FireFox 2.0)。文本框

刷新但图像不刷新(但是

图片的宽高比确实会根据新选择的图片而改变。)

>
您可以在IE6上看到这项工作,或者在IE浏览器中失败 http://www.deanblakely.com/FamilyPhoto.aspx


IE中可能导致此故障的原因7和FireFox 2.0浏览器?


-

问候,

Gary Blakely

>I have an UpdatePanel on one of my aspx pages with a ListBox, Image, and a
TextBox inside it. When an item is selected in the list box my codebehind
file displays a new picture in the image and new text in the TextBox. It
works wonderful in I.E. 6. No Postback - no extra code.

BUT... It does not work right in I.E. 7 (nor FireFox 2.0). The textbox
refreshes but the image does not refresh (however the aspect ratio of the
picture does change according to the newly selected picture.)

You can see this work with I.E.6 or fail with I.E.7 at
http://www.deanblakely.com/FamilyPhoto.aspx

What can be causing this failure in the I.E. 7 and FireFox 2.0 browsers?

--
Regards,
Gary Blakely



你好Gary,


我刚刚访问了你提供的网页链接,看来当我选择一个

ListBox中的某个图像(名称)(在updatepanel中),图像控件

正确显示所选图像)以及刷新

文本框。我在Windows 2k3盒子上使用IE 7。您的测试环境中是否还有其他可能导致该行为的因素?


此致,


Steven Cheng


Microsoft MSDN在线支持主管


此帖子按原样提供。没有保证,也没有授予任何权利。

Hello Gary,

I have just visited teh web link you provided and it seems when I select a
certain image(name) in the ListBox(in updatepanel), the image control
correctly displays the selected image) together with the refreshing of the
textbox. I am using IE 7 on a windows 2k3 box. Is there any other
particular factors in your test environment that can cause the behavior?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

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


史蒂文,

嗯,我和其他人一起使用网站IE7失败,

适用于IE6。我们所有人都可能使用XP。

当我现在使用I.E.6访问它时,它来自VMWare Server 2003映像。

这使事情变得复杂。也许Mark FitzPatrick的

帖子有什么东西?

Gary


" Steven Cheng [MSFT]" < st ***** @ online.microsoft.com写信息

新闻:s1 ************** @ TK2MSFTNGHUB02.phx.gbl ...
Steven,
hmmm, with me and others that use the site it always fails with I.E.7 and
works with I.E.6. all of us are likely using XP.
When I access it now with I.E.6 it''s from a VMWare Server 2003 image.
This complicates things. Maybe there is something to Mark FitzPatrick''s
post?
Gary

"Steven Cheng[MSFT]" <st*****@online.microsoft.comwrote in message
news:s1**************@TK2MSFTNGHUB02.phx.gbl...

你好Gary,


我刚刚访问了你提供的网站链接,看来当我选择

列表框中的某个图像(名称)(在updatepanel中),图像控件

正确显示所选图像)以及刷新

文本框。我在Windows 2k3盒子上使用IE 7。您的测试环境中是否还有其他可能导致该行为的因素?


此致,


Steven Cheng


Microsoft MSDN在线支持主管


此帖子按原样提供。没有保证,也没有赋予

权利。
Hello Gary,

I have just visited teh web link you provided and it seems when I select a
certain image(name) in the ListBox(in updatepanel), the image control
correctly displays the selected image) together with the refreshing of the
textbox. I am using IE 7 on a windows 2k3 box. Is there any other
particular factors in your test environment that can cause the behavior?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

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



这篇关于AJAX更新面板与I.E.7问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆