• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 765
  • Last Modified:

Asp.net page with Ajax controls not showing in IE7

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
ActiveWeb
Asked:
ActiveWeb
1 Solution
 
DabasCommented:
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
 
ActiveWebAuthor Commented:
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
 
DabasCommented:
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
existenz2Commented:
Looks more like an encoding issue UTF-8 vs ASCII etc... Have you checked that yet?
0
 
ActiveWebAuthor Commented:
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
 
ActiveWebAuthor Commented:
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
 
AnnieModCommented:
PAQed with points refunded (500)

AnnieMod
Cleanup Admin
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now