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, ...Inline Skin Code (ascx)Inline Skin Code (ascx)
Previous
 
Next
New Post
10/29/2009 11:18 AM
 

I recently saw the following article:

http://www.erikvanballegoij.com/tabId/36/itemId/20/Creating-a-DotNetNuke-inline-skinobject.aspx

After trying something similar where I simply placed a literal in my skin and attempted to change its text on page_load it did not work.  When debugging it looks as though it never even runs the page_load procedure.

Is it possible to do what the author of the above article claims?  Is it possible to add inline code to your skin that will run?

 
New Post
10/29/2009 11:27 AM
 

Upon further examination,it might have something to do with dnn5 changing the id's of any server objects.

My literal's id goes from "test" to "dnn_test".  Is there a way to keep this from happening?

 
New Post
10/29/2009 1:23 PM
 

apple sauce wrote

Upon further examination,it might have something to do with dnn5 changing the id's of any server objects.

No, this has been like this from day one. You address the literal through it's server site id

My literal's id goes from "test" to "dnn_test".  Is there a way to keep this from happening?

No that is ASP.NET behavior, not specific to DNN

There must be something else you are doing wrong, because I use this in all of my skins.

 
New Post
11/17/2009 6:49 AM
 

I had the same problem and had no clue what was wrong with my code. Then I googled and I came across this post.

I have found the solution to my problem. Apparently, if you add the Page_Load Event into a script section in the ascx file in Visual Studio, Visual Studio doesn't add the Handles Me.Load part of the Event Signature.

 Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
 End Sub

After adding the red marked part everything worked fine.

Maybe this helps.

Kind Regards,

Christos

 

 

 

 

 

 

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Inline Skin Code (ascx)Inline Skin Code (ascx)


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