Вопрос

I have currently run into an issue updating an old Website that leverages an Infragistics Menu control in a UserControl throughout the site. The dropdown menus of the Infragistics control do not render correctly in IE9 unless the page is being rendered in Quirks mode. Quirks mode in IE9 is causing havoc with a large amount of javascript and other user controls.

Is it possible to have the UserControl that contains the Infragistics control render in a DOCTYPE that allows Quirks mode and then render the rest of the page in Strict?

I have looked at possibly using adaptercontrols to try to control this behavior but I have only found a way to control the overall page through the following link. http://wiki.visualwebgui.com/pages/index.php/ASP.NET_Wrapper_-_Custom_DOCTYPE_for_a_wrapped_control

This implementation controls the DOCTYPE for the entire page though and not a specific UserControl which is what I need.

Has anyone else ran into a situation where they needed portions of pages rendered in different DOCTYPEs?

Это было полезно?

Решение

Plain simple --> No.

Alternative, use an iframe for a page with that control only, and pass values to parent document through javascript using document.parent, this is the best that can be done, for that odd and specific dilema you are facing.

This link will help you with the iframe trick: How to force Iframe to run quirks under a standard parent frame.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top