Forum


HomeHomePremiumPremiumAdministrationAdministrationASCX Page Copy Causes ErrorASCX Page Copy Causes Error
Previous
 
Next
New Post
9/3/2016 10:05 AM
 
Hello,

I have a strange problem :-)

I have a slider which I'm trying to get working on a DNN page, the slider is supposed to display full screen. It works perfectly on Chrome and almost perfectly on I.E., but on Firefox the slider is roughly double the height of the screen and increases in size every time a slide changes. The DNN page's settings change the site's default settings to use a particular ascx page (let's call it PageA.ascx).

So after a lot of trial and error, I discovered that the slider works fine in all browsers if I change the page settings to use (say) PageB.ascx. So I thought I will make a copy of PageB.ascx and call it PageC.ascx. Then I can and make changes to PageC.ascx step by step until it's the same as PageA.ascx, then at some point I will discover the cause of the error.

But when I use a copy of the pageA.ascx, I get the same error, I've made no changes whatsoever.

To Summarise:
PageA.ascx - Works on Chrome and I.E. but doesn't display the slider correctly in Firefox.
PageB.ascx - Works perfectly on all browsers.
PageC.ascx - Is just a copy of PageB.ascx but causes the same problems as PageA.ascx.

I'm using DNN 7.4. 
All ascx pages are from the same theme.

There are no relevant errors in the event viewer.


I must be missing something but I'm out of ideas, I guess I can sleep on it and hope I have one of those 'ah ha' moments in the morning, but somehow I don't think I will.

Does anyone please have any suggestions. I tried to explain as clearly possible, any questions about the above gladly answered.

All the best,

Steve.
 
New Post
9/6/2016 2:07 AM
 

Hello Again,

 

One thing I can add to the above issue is that the site is running on my local machine.

I will try moving it to a hosted server and see if it still occurs.

 

Steve

 
New Post
9/6/2016 6:20 AM
 

Hi Steve,

Before I get to my suggestion, one thing I got confused was when you said "particular ascx page" ASCX are controls, not pages - Just trying to get us on the same page - no pun intended - Do you mean a page that uses a particular theme variation called "PageA", "PageB" and "PageC"?

I assume so, then my suggestion would be to make sure your theme variation (.ascx) file has a file called "PageC.doctype.xml" - This file determines which doc type is stablished for the page. You can find examples on any skin that comes with DNN. I think you can also specify a global one for the entire theme package called "skin.doctype.xml" - But I'm not sure about this.

By missing the doc type file we have faced very strange problems in the past and it all boiled down to my having a doc type file.

Hopefully that is your case.

Cheers,

Aderson

 
New Post
9/6/2016 7:27 AM
 
Hello Aderson,

Thank you your reply.

I realise ascx files are controls, but by 'particular ascx page', I wanted to distinguish between pages you view on the screen and the ascx controls assigned to a page. i.e.

Edit Page > Page Settings > Advanced Settings > Appearance > Page Theme
Sorry for the confusion, I'm not sure how to express things sometimes.

I just made a copy of the .doctype.xml file and the slider is working perfectly! Hip Hip Hooray!


Thanks for you help.

Steve
 
New Post
9/6/2016 12:21 PM
 

I'm glad we were on the same page Steve. And awesome that my suggestion worked! :)

I have done some crazy stuff before, almost pulling my hair, because of a problem like the one you mentioned, only to find out it was caused by the missing doc type

Cheers,

Aderson

 
Previous
 
Next
HomeHomePremiumPremiumAdministrationAdministrationASCX Page Copy Causes ErrorASCX Page Copy Causes Error



Try FREE
30 days money back guaranteed