Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Application running with Set Compatiblity On
Message
De
29/01/2013 11:31:42
 
 
À
29/01/2013 10:58:03
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01564514
Message ID:
01564533
Vues:
23
For those interested in doing it in code, here is the code that goes in the PreRenderRequest:
                ' If this is IE
                If lIE Then

                    ' If this is HTML5
                    If lHtml5 Then

                        ' Remove set compatibility option from the top browser
                        ' Force the page to work with set compatiblity off
                        loHtmlGenericControl = New System.Web.UI.HtmlControls.HtmlGenericControl("Meta")
                        loHtmlGenericControl.Attributes.Add("http-equiv", "X-UA-Compatible")
                        loHtmlGenericControl.Attributes.Add("content", "IE=9")
                        oHtmlHead.Controls.Add(loHtmlGenericControl)

                    End If

                End If
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform