Sign In  |  Register
 
 DotNetNuke Powered!
DotNetNuke Support Forums

Debugging Skin inline code

Rate this topic:

Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

AuthorMessages
patrick1010
Posts:42



03/06/2007 4:13 AM  
Hi John

I'm using some inline code in my skin for example
<%= Response.Write("xxx!") %>

It seems that Response.Write("xxx) isn't working in a DNN skin. In order to get an error message that tells me what went wrong I need to switch on the debugger. Within web.config I set
<compilationdebug=true>
and I also played with <%@ Control language="vb" CodeBehind="~/admin/Skins/skin.vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" Debug="true" %>
But I never get an error message.

What do I need to do in order to use the debugger and why is <%= Response.Write("xxx!") %> not working?

Thanks,
Patrick
John Mitchell
Posts:3248



03/06/2007 7:52 AM  

Hi Patrick,

The <%= is a Response.write, so all you need is <% Response.Write("xxx") %>

The Equal sign being the difference. Or you could put <%= xxx %>

Getting an error message out of the user controls (.ascx -- skins, skinObjects, etc.) is kind of hard because DotNetNuke is loading them and trapping errors internally.  To see the actual error you can look in your log viewer.

You can also use Nik's solution  http://www.devtao.com/2005/02/25/Speerio+My+Modules+VSNet+Solution+For+DotNetNuke.aspx

 


 

patrick1010
Posts:42



03/06/2007 9:23 AM  
Hi John

Thank you for the correction of <% Response.Write("xxx") %> and the for the tip to have a look in the log-File to see the error message.
I'm using now the PortalSettings.ActiveTab.TabName property from your Blog in my skin:
 <%=iif (PortalSettings.ActiveTab.TabName = "Kontakt", "_active", "") %>

and its working fine
Patrick
Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

Forums >DotNetNuke Support >General-DNN-Help > Debugging Skin inline code



ActiveForums 3.7
Visit our Store for great DotNetNuke Modules and Skins
DNNMasters Sitemap/Google Sitemap 3.0

Item codeSM3-01
Price$29.00
Product Information 
DotNetNuke CSS NavMenu 3.3 (Developers)

Item codeCSSNM33DEV
Base Price$149.00
Product Information 
Snapsis PageBlaster 3.3.2 for DotNetNuke - Professional Edition

AuthorJohn Mitchell
Base Price$79.00
Product Information 
XDAkuna (Web 2.0 CSS XHTML Skin)

Item codeXDAkuna
AuthorNina Meiers
Price$49.00
Product Information