I'm having some problems with my skin and specifically the solpartmenu. I have a nice rounded edge as part of a style to the left of my menu that I'd like to change based upon the page I'm on. The image is a background style applied to a table column that the solpartmenu resides in.
You can see my site here:
http://www.psybt-trial.co.ukNow I've though that I'd need to apply a piece of VB to determine the URL (to see if it has the word home or nothing specified as it could be a sub page or the first page of the site) and I've used something like this to test my theory:
Public Function sShow() As String
If InStr("home", "home") > 0 Then
Return "MenuTD"
Else
Return "MenuTDBlack"
End If
End Function
Within my skin I have the variable <%=sShow %> as the style for the td but my skin fails to load and I end up seeing the master style.
I believe the problem may lie in how I'm referencing the VB as I'm not sure what file I should be placing it within to make it work properly. I've tried adding it tothe codebehind files that appear to be referened at the top of my skin but this hasn't worked.
I know the VB above will not work (the URL referencing is obviously wrong) but it was written quickly to ensure the idea was sound but as I say I can't get anywhere with it and it's driving me nuts. So any advice anyone has to offer is greatly appreciated and would be welcomed.