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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Div containing view_state code visible on live site.Div containing view_state code visible on live site.
Previous
 
Next
New Post
6/22/2009 5:43 PM
 

The div that the core code generates which holds all the view_state code at the very top of the page is actually showing up as a blank 14px high area at the top of the screen in IE7 only.  IE8 renders fine as well as other browsers.  This <div> has no class or inline styles applied, so there is nothing I can do to get rid of it without effecting ALL other div's on the page.  We have tried removing all default font-sizes, adding default font-sizes of 1px height, etc, to the html, body, form, and div tag styles in the skin.css and nothing works to resolve this.  The only thing that works is to use IE8's developer toolbar to place an inline style of height: 0px to that particular div, and then it finally becomes invisible like it should.  But of course, you can't exactly ask site visitors to do that so the page renders correctly...

The odd thing is, I cannot repeat this problem on two other locations with the same skin installed.  It only occurs on one server that is running Windows 2003 SP2 and DNN 5.0.1.  On a local install of DNN5.0.1 where the skin's html, the skin.css, the container.css, default.css, portal.css, etc. are exactly the same when compared between the two.  There are no extra modules installed, everything is the same or at least appears the same behind the scenes.  The only difference is that the one site is rendering that div 14-16px high when it should not be visible at all.  Well, that and the offending site was upgraded several times from early versions of DNN 4x, and the test site was upgraded once from DNN 4.6.2 to 5.0.1, but again, the default.aspx and all css files are exact matches between the two.

Is that div that contains the view_state code somewhere in code that we can manually edit it to add an inline style of 0px height, or is that something that is in the compiled dll's in the bin directory?  We'd like to solve the issue before going live with the new site, and assume that nothing in any 5.1 upgrade is going to change in regards to not styling that div.

Suggestions?

Link to live site:  http://www.bytesolutions.com/


JOHN GIESY
DotNetNuke Hosting Expert

DotNetNuke 7 Hosting $70 /year
DNN4Less.com Team DotNetNuke  

New Post
6/26/2009 5:46 PM
 

Anyone else ever experience this or have any ideas on how to resolve it?


JOHN GIESY
DotNetNuke Hosting Expert

DotNetNuke 7 Hosting $70 /year
DNN4Less.com Team DotNetNuke  

New Post
7/9/2009 2:05 AM
 

Anyone have any clue why this would happen on one site and not on another site using exact duplicate of the skin, duplicate portal.css, duplicate default.css, etc.?  It's just baffling and I haven't found a resolution.


JOHN GIESY
DotNetNuke Hosting Expert

DotNetNuke 7 Hosting $70 /year
DNN4Less.com Team DotNetNuke  

New Post
7/9/2009 6:33 AM
 

Rick, strange problem, I heve never seen this before..

The div is injected by ASP.NET, there is no "easy" way to change it AFAIK.

I don't know a direct solution, but here are some suggestions..

-Might it be that both sites run on a different version of ASP.NET?

-If possible you could try to restart the sites application pool (that helped me once with some strange site problems)

-You could also try to set the font-size for the controlpanel and the pagemaster table and see if that helps. (remove it for the body)

-Another hack you could would try is to use JS, something like:
document.getelementById("__view_state").parent... etc. and set the height of the div to 0

HTH

 
New Post
7/9/2009 2:10 PM
 

We tried the font-size: 1px trick in various ways including what you mentioned.  I'm not sure about the asp.net versions, but I believe both sites are 3.0/3.5, I didn't think to check that. My localhost test and live website were both asp.net 2, but the live site I just upgraded to asp.net 3/3.5.  I also upgraded from sql 2000 to sql 2005 on my live site, not sure which version my client is using.  I'll pass these other suggestions along to see if they help.  I had asked the client to try a second separate installation with a clean 5.1 install, not one that was upgraded through different 4x versions, but he hadn't had a chance to test that out yet to see if it was some strange anomaly with that particular installation.  Anyway, thanks for the good suggestions!


JOHN GIESY
DotNetNuke Hosting Expert

DotNetNuke 7 Hosting $70 /year
DNN4Less.com Team DotNetNuke  

Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Div containing view_state code visible on live site.Div containing view_state code visible on live site.


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