C
Chowny
I am fairly new to ASP .NET, and am busy teaching myself as I work through
my current project.
I'm a bit stumped at the moment. I have made a usercontrol called
"RelatedClaims" . The code as follows :
'********************************
Private sLinkType As String
Public Property LinkType() As String
Get
Return sLinkType
End Get
Set(ByVal Value As String)
sLinkType = Value
End Set
End Property
'********************************
On another web form (Companies.aspx) I have added the following to the html
:
<%@ Register TagPrefix="UserControl" TagName="RelatedClaims"
Src="RelatedClaims.ascx" %>
And then added the control to the page with the following :
<usercontrol:RelatedClaims runat="server"
ID="RelatedClaims1"></usercontrol:RelatedClaims>
Right. Now my problem is that I cannot access the control from with the VB
code of the companies.aspx form. If I code
RelatedClaims1.LinkType = "[WHATEVER]"
It highlights RelatedClaims1 and says it is not declared. What am I
forgetting to do? Any help appreciated.
Regards
my current project.
I'm a bit stumped at the moment. I have made a usercontrol called
"RelatedClaims" . The code as follows :
'********************************
Private sLinkType As String
Public Property LinkType() As String
Get
Return sLinkType
End Get
Set(ByVal Value As String)
sLinkType = Value
End Set
End Property
'********************************
On another web form (Companies.aspx) I have added the following to the html
:
<%@ Register TagPrefix="UserControl" TagName="RelatedClaims"
Src="RelatedClaims.ascx" %>
And then added the control to the page with the following :
<usercontrol:RelatedClaims runat="server"
ID="RelatedClaims1"></usercontrol:RelatedClaims>
Right. Now my problem is that I cannot access the control from with the VB
code of the companies.aspx form. If I code
RelatedClaims1.LinkType = "[WHATEVER]"
It highlights RelatedClaims1 and says it is not declared. What am I
forgetting to do? Any help appreciated.
Regards