Posted on: 9/7/2015 7:45:45 PM | Views : 770

hello
I want to code a couple of hyperlinks to stay selected (underlined) when on the respective page. it's kind of a menu.
I put the names in an array and try to get them changing.
something like that:
Sub Menulinks() 'MsgBox(ContentPlaceHolder1.Page.Title) Dim strLinks As String = "lkHome,lkGeoflash,lkDoku,lkImpressum" Dim arrLinks() = strLinks.Split(",") Dim sPage As Page = ContentPlaceHolder1.Page For i As Integer = 0 To arrLinks.Length - 1 Dim sTitle As String = arrLinks(i).Substring(2) Dim mLink As HyperLink = Page.FindControl(arrLinks(i)) If sPage.Title = sTitle Then mLink.Font.Underline = True ' her is the problem... Else mLink.Font.Underline = False ' and here of cours... End If Next ...

Go to the complete details ...