If Session IsNot Nothing And Session("Admin") = "ftghgy" Then
Dim rptMenuItem As MenuItem = Menu1.FindItem("Home")
rptMenuItem.Selectable = True
Label9.Text = ("Welcome")
Else
Label9.Text = ("Welcome " + "" + Session("UserName").ToString)
endif
我收到这个错误...
"Object reference not set to an instance of an object" on this line "rptMenuItem.Selectable = True"
我并没有使用母版页。