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.0Ajax css issue - IE7Ajax css issue - IE7
Previous
 
Next
New Post
2/28/2008 4:48 AM
 

I have developed a module using Ajax and notice that in IE7 when the panel refreshes the css info seems to get lost and the module content looses its formatting. This does not happen in FF.

If I turn off "Supports Partial Rendering" the module displays as expected every time. With "Supports Partial Rendering" turned on the module displays correctly on first display only (in IE7).

Has anyone come accross this and is there a workaround or is there something I should be doing in the module that I have missed?

Declan


 
New Post
2/28/2008 10:51 AM
 

how are you associating the CSS, are you dynamically registering it on the server side?

I am using AJAX for my modules and custom CSS without any issue.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
2/28/2008 3:43 PM
 

Basically the module is a copy of the Events Module removing some functionality and adding more to suit my client.

I upgraded the site to 4.8.1 this evening and I no longer have the problem.

Declan


 
New Post
2/7/2009 9:01 AM
 

Hi Mitch,

Even i'm facing the same problem in IE7.

I place a gridview in my control and kept its css in a stylesheet.css file.

The supports partial rendering option is true for my module.

The page load file for the first time.

however i lose all my css when i do some action like sorting or paging.

i call the stylesheet.css file in my control the following way.

<link rel="stylesheet" href='<%= ResolveUrl("../include/StyleSheet.css") %>' />

 
New Post
2/7/2009 1:08 PM
 

I've seen this before. Not sure of the cause but the problem is that during postback, the page loses the CSS style sheet it is supposed to use.

My fix has been to load the stylesheets via code rather than specifying it in the ASCX file.

I have a Load_StyleSheets function which I call in Page_Init. This ensures that my stylesheets get loaded every time.  Also note that I dump my stylesheet in the CSS object which the core has on Default.aspx. This ensures that stylesheets are all in one place rather than all over the page.

  Private Sub Load_StyleSheets()
            'Resolve the path to the Configuration style sheet.
            Dim objLink As New HtmlLink()
            objLink.Attributes("rel") = "stylesheet"
            objLink.Attributes("type") = "text/css"
            objLink.Href = DotNetNuke.Common.Globals.ApplicationPath() & "/DesktopModules/XXXX/" & "css/styles.css"
            If Not IsNothing(Me.Page.FindControl("CSS")) Then
                Dim objCSS As PlaceHolder = Me.Page.FindControl("CSS")
                If Not objCSS.Controls.Contains(objLink) Then _
                objCSS.Controls.Add(objLink)
            End If
       End Sub


AcuitiDP - Oracle Data Provider for DotNetNuke
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Ajax css issue - IE7Ajax css issue - IE7


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