user434770
user434770

Reputation: 181

Dotnetnuke - How to write server side script in skin.ascx file

I am extremely new to dotnetnuke. I don't know which server side language can write in Dotnetnuke skin.ascx page. How to write server side script in skin.ascx file?

Upvotes: 1

Views: 1863

Answers (3)

Matt
Matt

Reputation: 1038

You can also create a skin object which is similar to a user control see the link below for a simple example that adds hello to the login users name

http://www.datasprings.com/Resources/ArticlesInformation/DevelopingandImplementingDNNSkinObjects.aspx

Upvotes: 0

Stephen Way
Stephen Way

Reputation: 678

Or alternatively use this. Also works with VB or C#

  <script runat="server">
  Protected Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init

  'do something'

  End Sub
  </script>

Upvotes: 4

Prashant Lakhlani
Prashant Lakhlani

Reputation: 5806

just use <% %> same as normal .aspx./ascx page, for example:


<%
DotNetNuke.Framework.jQuery.RequestRegistration()
%>

just use the syntax of vb or c# whatever you are using

Upvotes: 4

Related Questions