Saturday, March 10, 2012

User Control Button Click Event BUG with AJAX 1.0 and IE6

Hi,

I can't see any Ajax related code there, which ASP.NET AJAX features are you using?


The are no AJAX controls used on the user control (ascx file) directly. The only AJAX controls on the default page are CollapsiblePanels. I use CollapsiblePanel, Accordion, ModalPopup, FilteredTextBox, TextBoxWatermark, ConfirmButton and other AJAX controls on other pages.The issue is not only related to the user control shown above (it's placed on nearly all the sites pages) but on all other user controls as well (that have event handling).

For example: The site was originally derived form the "Club Starter Kit" and the photo form picker user control (unaltered) used on the photo album and news view pages dose not work as well. The images buttons on the photo form picker ascx do not fire (no post back event).

When I click "View Source" in ie6 the rendered html for the NewsLetter image button on the NewsLetter user control (code shown in origional post) is illustrated below:

<form name="aspnetForm" method="post" action="Default.aspx" id="aspnetForm" enctype="multipart/form-data">
..
...
....
<center>
<span id="ctl00_ContentPlaceHolder1_NewsLetter_Label1"
style="font-weight:bold;font-style:italic;text decoration:underline;">NewsLetter</span>
<br />
<input type="image" name="ctl00$ContentPlaceHolder1$NewsLetter$ImageButton1"
id="ctl00_ContentPlaceHolder1_NewsLetter_ImageButton1" title="Click to Read Our News Letter"
src="http://pics.10026.com/?src=Images/NewsLetter.jpg"
style="border-color:Gold;border-width:1px;border-style:Solid;height:55px;width:110px;" />
</center>
...
...
..
</form>



Good news – Well… I think. I just tested on a bunch of other boxes running ie6 with various operating systems here at work. They seem to work ok. That is, they produce a post back when a user control button is clicked. This looks more like a explorer service pack, ie setting, os, or .net framework version issue. Its good news because it's not a wide spread bug as I thought. Just wish that on of my test systems (the one that does not fire a post back) here a work would function correctly. I keep it with ie6 for testing.

The box that fails has XP PRO with SP2 and IE6 with SP2. All IE6 settings are default with Java JRE 1.5.0_06 set as the java runtime environment.


PS: if you would like to test on your system the test site address is:http://www.jeromessite.com/

Also - If anyone woul like a copy of the site source code for a school or ministries application then let me know. The source code is free...jerome@.jeromessite.com currently forwards to my personal account.

No comments:

Post a Comment