R
raemdop
Guest
hi,
I have some code where I create an array of hyperlinks and put them on a webform. Is there a way to position the Hyperlinks on this webform, because they are all one 1 horizontal line on top of the page.
Thanks for reading my problem
Raemdop
I have some code where I create an array of hyperlinks and put them on a webform. Is there a way to position the Hyperlinks on this webform, because they are all one 1 horizontal line on top of the page.
Thanks for reading my problem
Raemdop
Code:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Dim sid() As HyperLink
Dim i As Integer
For i = 0 To 100
Dim hl As New HyperLink()
ReDim sid(i)
hl.NavigateUrl = "targetPage.aspx"
hl.Text = "test"
sid(i) = hl
'this does not work !!!!!!!!!!!!!!!!
sid(i).Style.Item("top") = 100 + i
sid(i).Style.Item("left") = 50
Me.Controls.Add(sid(i))
Next i
End Sub