Hi Chris,
Thanks for replying to my post. Yes, you are correct. It does appear to be the doctype. I tested in Firefox and the modal popup works fine.
I don't have a url to view the page because it is a company intranet that is not accessible.
In the DNN site default page, there is a method that sets the doctype:
Private Sub SetSkinDoctype(ByVal SkinPath As String)
Dim FileName As String = ApplicationMapPath & SkinPath.Replace(".ascx", ".doctype.xml")
'set doctype to legacy default
Dim DocTypeValue As String = "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.0 Transitional//EN"">"
Dim strLang As String = System.Globalization.CultureInfo.CurrentCulture.ToString()
If File.Exists(FileName) Then
Try
Dim xmlSkinDocType As New System.Xml.XmlDocument
xmlSkinDocType.Load(FileName)
Dim strDocType As String = xmlSkinDocType.FirstChild.InnerText.ToString()
DocTypeValue = strDocType
If strDocType.Contains("XHTML 1.0") Then
'XHTML 1.0
_langCode = "xml:lang=""" + strLang + """ lang=""" + strLang + """"
_xmlns = "xmlns=""http://www.w3.org/1999/xhtml"""
ElseIf strDocType.Contains("XHTML 1.1") Then
'XHTML 1.1
_langCode = "xml:lang=""" + strLang + """"
_xmlns = "xmlns=""http://www.w3.org/1999/xhtml"""
Else
'other
_langCode = "lang=""" + strLang + """"
End If
Catch ex As Exception
'if exception is thrown, the xml is not formatted correctly, so use legacy default
End Try
Else
_langCode = "lang=""" + strLang + """"
End If
'Find the placeholder control and render the doctype
Dim objDoctype As Control = Me.FindControl("skinDocType")
CType(objDoctype, System.Web.UI.WebControls.Literal).Text = DocTypeValue
End Sub
If I change the following line:
Dim DocTypeValue As String = "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.0 Transitional//EN"">"
to
Dim DocTypeValue As String = "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD XHTML 1.0 Transitional//EN"">"
Then the modal popup will work in IE.
However, this causes formatting problems throughout the rest of our company intranet site. Font size changes, menu alignments get changed, etc.
To fix all the formatting changes globally for the different doctype would be an undertaking, so I'm trying to figure out how to overcome this issue...get the modal popup to work without hosing the entire site formatting.
Any ideas?
Thanks for your help. I appreciate it.