Last post Apr 01, 2005 11:59 AM by cathal
Apr 01, 2005 05:23 AM|WeepingBoil|LINK
I've successfully built a skin as an .ascx file with plenty of images. Is it possible to add some .net code into this file to make one of the images random? I've tried overriding Page_Load but that throws an exception however I call it.
The image is the background to a table cell and I'm sure this can't be soved by developing a custom module - it's very much part of the skin.
I'm afraid all my .net code experience is in C# - I'm very rusty with vb [:(]
Any help would be appreciated - I've got to have my site finished very soon or I'm going to get shouted at! lol
Apr 01, 2005 11:59 AM|cathal|LINK
whilst you could do this by adding inline .net code, that will simply run when that part of the page is processed, this is what skinobjects are intended for i.e. you create a skinobject and then simply add a token to the skin e.g. [RANDOMIMAGE]. If you take
a look at the DotNetNuke Skinning.doc in the documentation folder it should help you. Also the admin\skin folder contains the existing skin objects, take a look at something like the search one.