Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Error occurring with modalpopupextenderError occurring with modalpopupextender
Previous
 
Next
New Post
9/9/2008 1:19 PM
 

I'm having problems implementing a modalpopupextender within a DNN module I've created.  I googled the problem and found several threads that speak to this issue:

http://forums.asp.net/p/1151941/2582715.aspx#2582715

I tried the solution provided in the thread, but the problem is still occurring.  The modal popup displays at the bottom of the form and the scroll bars on the page extend way down the page.  The formatting is all messed up.

Any help is appreciated.

Thank you.

 
New Post
9/9/2008 2:13 PM
 

Do you have a URL we can test? I've seen this many times, and in my experience it always has to do with an improper DocType setup for your skin.


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
9/9/2008 3:39 PM
 

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.

 
New Post
9/10/2008 11:10 AM
 

Does anyone have any suggestions on how to resolve the issue I'm encountering other than re-doing styles to work with XHTML 1.0 Transitional?

 
New Post
9/10/2008 11:37 AM
 

Hi D,

Unfortunately the ASP.NET Ajax Control Toolkit requires the use of XHTML 1.0 Transitional.  This will likely limit your options to the use of this DOCTYPE or not using the extender.

It's possible that there are some workarounds out there, but this is a question for the control toolkit people control toolkit people (and not DNN-related).  I am not aware of any such workaround. 

Sorry to be the bearer of bad news!

Brandon


Brandon Haynes
BrandonHaynes.org
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Error occurring with modalpopupextenderError occurring with modalpopupextender


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out