this does nothing, althought in debug it goes line by line but there is no hyperlink anywhere that I can see. I want to create hyperlinks dynamically based on users.
What am I doing wrong?
DougP
What am I doing wrong?
Code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim UserRights As String = "Resource"
If UserRights = "Resource" Then
Dim hyp = New HyperLink()
hyp.ID = "AddTime"
hyp.NavigateUrl = "~/mypage.aspx"
Page.Controls.Add(hyp)
End If
End Sub
DougP