J
jeanluc.praz
I created a user control containing containing a few hyperlinks.
How can I change the NavigateUrl inside the user control ?
So far I did the following:
1) In the custom control
2) In the page containing the control:
My problem is that at PreRender the value I passed down to the property
doesn't exist any more.
Any other way of achieving this ?
Jean-Luc
www.corobori.com
How can I change the NavigateUrl inside the user control ?
So far I did the following:
1) In the custom control
Code:
Public Property SetURL()
Get
SetURL= sModificarURL
End Get
Set(ByVal Value)
sModificarURL = Value
End Set
End Property
Private Sub Page_PreRender(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.PreRender
Me.hlnkModificar.NavigateUrl = sModificarURL
End Sub
2) In the page containing the control:
Code:
Dim cc As New myCustomControl
cc.SetURL= "Cv_1.aspx?x=" & Request("x")
My problem is that at PreRender the value I passed down to the property
doesn't exist any more.
Any other way of achieving this ?
Jean-Luc
www.corobori.com