-
vb question in Tornado (.dynamic dbskin)
Hello Sirs and Madams.
I want to change the skin (bluerain, plain, gold, summermeadow) according to the day of the week (in Tornado).
I imagine it is an array with an if..then statement, something like in vb.net: if day= blah blah, then .dbskin = blah blah.
No particular reason - just want to see if it can be done,
I am sure an experienced VB programmer could do this before breakfast, but all I know is Tornado and the back cover of VB.Net for Dummies - and my boss still thinks I am a programming genius!
Any suggestions how to make the .dbskin dynamic according to day of week?
Any ideas appreciated
bart
-
With Tornado, your work can beat a lot of genius !!! Try the following ->
<script language='vb' runat='server'>
Sub Page_Load(Source as Object, E as EventArgs)
Dim Skins() as integer = {1,2,3,4,5,6,7} '... put your 7 favorite skins here
Dim Mydb As New Tornado.Z()
With Mydb
.dbQP = "U=1|M=grid|Ps=5|Q=Employees|D=Nwind|Th=Ti=Ran dom Skin"
.dbSkin = Skins(WeekDay(now())+1)
'... .dbSkin = "Random" 'this presents a random skin
.ASPdbNET()
End With
End Sub
</script>
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|