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, ...Change skin languageChange skin language
Previous
 
Next
New Post
12/5/2014 2:07 PM
 
Hello and thank you for your help in advance,

OK - I have a problem.
I hate VB - and I want to change the:
<%@ Control Language="VB" Explicit="true" AutoEventWireup="false" Inherits="DotNetNuke.UI.Skins.Skin" %>
to:
<%@ Control Language="C#" Explicit="true" AutoEventWireup="false" Inherits="DotNetNuke.UI.Skins.Skin" %> 

First it breaks my skinpath code if I do this, and second if I add script tags with runat server and start to write C# - it does not work.  If I put back the VB for the language it works.  And third Visual studio puts a blue squiggly under the control declaration with "syntax error".

Why cant I do this?

 
New Post
12/6/2014 1:26 PM
 
not sure, thought the explicit directive is a vb.net only item so try dropping that . Note: dont forget if you change to c# you need to use SkinPath as c# is case-sensitive (http://www.dnnsoftware.com/forums/for...)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
12/8/2014 9:14 AM
 

Thanks Cathal,

Yep you were right about both items - but it still doesn't work?

I have: <%@ Control Language="C#" AutoEventWireup="false" Inherits="DotNetNuke.UI.Skins.Skin" %>

Still get the blue squiggly in VS.

Tried : void Page_Load ()

{

//the void did not show up blue 

}

Can this be achieved by making a change in source somewhere?

 

 
New Post
12/8/2014 4:28 PM
 

Has anyone gotten this to work - without a code with or without a code behind file for you skin?

If not, maybe this should be a feature in DNN - maybe an admin setting or something?

 
New Post
12/8/2014 5:30 PM
 
John Ashton wrote:
Hello and thank you for your help in advance,

OK - I have a problem.
I hate VB - and I want to change the:
<%@ Control Language="VB" Explicit="true" AutoEventWireup="false" Inherits="DotNetNuke.UI.Skins.Skin" %>
to:
<%@ Control Language="C#" Explicit="true" AutoEventWireup="false" Inherits="DotNetNuke.UI.Skins.Skin" %> 

First it breaks my skinpath code if I do this, and second if I add script tags with runat server and start to write C# - it does not work.  If I put back the VB for the language it works.  And third Visual studio puts a blue squiggly under the control declaration with "syntax error".

Why cant I do this?

 You could create a skin object for your code, this allows you to use any .net supported language ( in essence that's just a user control)

BTW did you try setting the language for your script block? AFAIK that's also possible. I know there are people using c# in their skin, so it must be possible.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Change skin languageChange skin language


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.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out