我正在尝试根据当前页面的文件名更改超链接 CssClass。像这样的东西:
Protected Sub lnkAbout_Load(sender As Object, e As System.EventArgs) Handles lnkAbout.Load
Dim CURL As String = Request.Url.ToString
If Me.lnkAbout.NavigateUrl = CURL Then
Me.lnkAbout.CssClass = "AboutActive"
End If
End Sub
我知道这不起作用,但如果有人向我展示正确的方法,我将不胜感激。提前致谢。