Tag Archive : IE8

Visual Studio Debug Problem with IE8

1
Digg me

Thanks to  : Abdulla AbdelHaq
Source : http://weblogs.asp.net/abdullaabdelhaq/archive/2009/06/01/VS-Debug-Problem-with-IE8.aspx
 
How VS debugger could be crashed with IE8?
If you opened multiple instances of IE8 and you attempt to debug your project, you mostly will have the issue where VS debugger just stops and ignores your break points!
Why was that?
Well, IE 8 has a feature called Loosely-Coupled Internet Explorer (LCIE) which results in IE running across multiple processes. 
http://www.microsoft.com/windows/internet-explorer/beta/readiness/developers-existing.aspx#lcie
Older versions of the Visual Studio Debugger get confused by this and cannot figure out how to attach to the correct process. 
To overcome this issue, you need to disable the process growth feature of LCIE by follow the below steps:
1)  Open RegEdit
2)  Browse to HKEY_LOCALMACHINE -> SOFTWARE -> Microsoft -> Internet Explorer -> Main
3)  Add a dword under this key called TabProcGrowth
4)  Set TabProcGrowth to 0
 If you run into the same problem on Vista or newer, you will also need to turn off protected mode.
And then go a head and start debugging your code.

How to make your webpage IE8 compatible

3
Digg me

Follow these steps, to make your webpage IE8 compatible. Feel free to add more pointers in comments.
1. Make your webpages Xhtml 1.1 compatible by adding this on top of your .aspx or .html page
< ?xml version="1.0" encoding="UTF-8" ?>
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2. Remove all Inline Styling
Donot use inline styling

[table style="width:100px;height:200px;background-color:#ebebeb;"] [/table]

Instead use

.tableStyle1 {
width:100px;
height:200px;
background-color:#ebebeb;
}

[table class="tableStyle1"] [/table]

Replace ‘[' & ']‘ with ‘< ' and '>‘

3. Validate your CSS using
http://jigsaw.w3.org/css-validator/#validate_by_uri+with_options
Profile : CSS Level 2.1
Medium : ALL
Warnings : ALL or Normal Report

4. Use XHTML equivalents for outdated / deprecated html tags
Click here to view new XHTML Constructs

IE8 – Developer Tool – Profiler

0
Digg me

[caption id="attachment_177" align="alignnone" width="450" caption="IE 8 Profiler"][/caption]

Microsoft IE-8 profiler is great tool for developers. Read more about it directly from MS website. :)

more details..

http://msdn.microsoft.com/en-us/library/cc848895(VS.85).aspx

http://msdn.microsoft.com/en-us/library/cc848893(VS.85).aspx

IE8 Beta 2 and Asp.net rendering issues

2
Digg me

IE8 Beta 2 and Asp.net Menu Control rendering issues

If your code works on IE 6,7 and Firefox even on chrome it may not work on IE8. The reason being Microsoft suddenly woke up and started to be strict with design and style standards.

For styles not working the way it should or DHTML not appearing on screen the problem is inline styling. IE 8 doesnt parse the code if its inline styling.
So the simple fix is move all the style=” “  to stylesheet class
This is better way to clean your code too.