Solved

Asp.net page with Ajax controls not showing in IE7

Posted on 2007-04-06
8
733 Views
Last Modified: 2013-12-08
I am a quite experienced programmer, and I have dealt with buggy browsers, but I was not prepared for the new work of art of Microsoft: IE7.
The whole project we implemented is not working in it and each page present bugs in different ways and for different controls. The matter seems to be complex so Ill try to put 1 problem for each post so to simplify the issue. Naturally every page work fine in any other broswer.
if you try connecting to www .  d o m e g o s . com/ownerhome.aspx  from IE7 nothing would appear.
If you save the page in htm format (looking at the source is not enough because notepad doesn't show Hex0000 characters) you can see that Ie7 adds many empty characters at the end of the file. In VS2005 will show you the characters as around 20000 little squares at the end of the file. In any hexadecimal viewer you can check they are all Hex0000. If these characters are removed the page will show normally.
This page is using Microsoft Asp.Net Ajax controls (but I am not sure what is the cause of this error  quite sure that is related to Ajax controls). Ajax framework installed is the latest and Ajax control toolkit too.
Please if you have Any idea of what this could be let me know.
The controls used in the page are: hovermenuextender and Collapsiblepanels and the code for them is very simple and with no codebehind that affects them.
Thanks
ActiveWeb
0
Comment
Question by:ActiveWeb
8 Comments
 
LVL 27

Expert Comment

by:Dabas
Comment Utility
Hello ActiveWeb,

I have overcome the "IE7" blues, and now have the opposite problem. My pages render OK in IE7 and FF and I have problems with IE6!
I found the "IE Developer Toolbar" very useful. If you use FireBug for FireFox then it is similar.
I think it is very helpful in identifying and discovering what goes wrong with a page. Often a missing closing tag, or an invalid CSS entry.

Regards,

Dabas
0
 

Author Comment

by:ActiveWeb
Comment Utility
I am glad that you solve your Ie7 problems, at least a good news that there is a solution (sometimes).
Did you find any problem in the page I said using the developer toolbar? I already have that installed and I don't find it useful to solve my problems.
Try yourself looking at the htm file "OwnerHomeNoNullValues.htm" in the same domain. This is an exact copy of the file without the Hex0000 at the end of the file. In that case the page would display. Does anyone know how that is possible?
How is it possible that the same exact page with the same exact CSS would display?
Thanks
ActiveWeb
0
 
LVL 27

Expert Comment

by:Dabas
Comment Utility
ActiveWeb,

You are right. I did not test your page before, but you did not make it easy to click on it in your question either, adding all of those spaces!
The IEDeveloper does how that IE7 is rendering your page, as it the elements are showing in the DOM explorer.
Unfortunately I do not have your original file, but my guess is that somewhere or other you are missing a closing tag, which is confusing IE7
For example, if I take the rendered html, and paste it into the IDE, there are several complaints of a closing </div> that has no matching start tag.
My suggestion is that you right clik on the page, select view source, and compare the rendered page with your original page.
You will probably find what it is that is causing the wrong rendering somewhere, thereby solving your problem

Dabas
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 14

Expert Comment

by:existenz2
Comment Utility
Looks more like an encoding issue UTF-8 vs ASCII etc... Have you checked that yet?
0
 

Author Comment

by:ActiveWeb
Comment Utility
I didn't check that before, so I was eager to try... but it didn't work. I tried both us-ascii and ISO-8859-1. The issues are getting stranger and stranger. It seems that random combination of Ajax controls and css cause this issue. Here there is a sample:
Header.ascx = uses hovermenuextender
Tagthispage.ascx = uses CollapsiblePanelExtender
Tellyourfirend.ascx = uses CollapsiblePanerExtender
OwnerLogin.ascx = uses CollapsiblePanerExtender
Footer.ascx = no Ajax controls used

Combinations:
Header.ascx
3 x Tagthispage.ascx
WORKS

Header.ascx
4 x Tagthispage.ascx
FAILS

Header.ascx
Tagthispage.ascx
Tellyourfriend.ascx
WORKS

Header
Tagthispage.ascx
Tellyourfirend.ascx
OwnerLogin.ascx
FAILS

Header.ascx
Tagthis page.ascx
Tellyourfriend.ascx
Footer.ascx
WORKS

Header.ascx
Tagthispage.ascx
OwnerLogin.ascx
Footer.ascx
WORKS

Header.ascx
Tagthispag.ascx
Tellyourfriend.ascx
OwnerLogin.ascx
Footer.ascx
FAILS

Everytime it fails the hex0000 values appear at the bottom of the page. The more controls there are the more those values will be. I tried putting around 20 controls and the hex0000 were more than 100thousand.
Any clue??
Any suggestion on what to do next?
I am going to try to use Fiddler so to try and understand a bit of what is happening. But I really need help on this, and I HAVE to solve it asap. I don't know if it is possible in Expert Exchange, but I would give generous tip if you can solve this or point me to right direction.
I am tring to make a simple code sample(it's time consuming to strip all the css, controls and master code in one simple sample page though. ) In the mean time can you reproduce the error by using those controls?
0
 

Author Comment

by:ActiveWeb
Comment Utility
Ok problem solved.
I will tell people what it was because this was one of the hardest bug to find.
We had a custom Url rewrite method for giving friendly URLs to users.
This component was using Memory Stream .Net object. And there is no information about this but Memory Stream returns a tail of Zeros. This meant that some bandwidth was wasted but all browsers would render this just fine..
Until IE7 arrived and he would behave in the weirest way with those Zeros values!!
If anyone find a similar error try first to switch off the UrlRewrite component.. instead of wasting a week on it.
Anyway, thanks everybody for your help. I know it was quite impossible for you to find this one out without access to the whole code.

Thanks!

ActiveWeb
0
 

Accepted Solution

by:
AnnieMod earned 0 total points
Comment Utility
PAQed with points refunded (500)

AnnieMod
Cleanup Admin
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now