I
Ishan Bhalla
Hello,
I have a class defination for Location which can have multiple keywords. The
keyword class has one Public property LocKeyword.
For simplicity i have remove all the other properties.
Public Class Loc
Inherits basecore
Private _keywords As List(Of LocKeyword)
Public Property Keywords() As List(Of LocKeyword)
Get
Return _keywords
End Get
Set(ByVal value As List(Of LocKeyword))
_keywords = value
End Set
End Property
End Class
Public Class LocKeyword
Inherits BaseCore
Public Keyword As String
End Class
Both Location and Keyword have their definations in the webservice project
under App_GlobalResources
The problem:
When i try to create a proxy object of type Location in an ASP.Net website
with the following code:
Dim oLoc As New Loc
oLoc.Keywords.Add(New LocKeyword())
I get an error - the Add generic method does not come up. Is there any way i
can make it? If i work on an object withen the Webservice project i dont
have any problem - Ie the Code works.
Any ideas?
Regards
Ishan
I have a class defination for Location which can have multiple keywords. The
keyword class has one Public property LocKeyword.
For simplicity i have remove all the other properties.
Public Class Loc
Inherits basecore
Private _keywords As List(Of LocKeyword)
Public Property Keywords() As List(Of LocKeyword)
Get
Return _keywords
End Get
Set(ByVal value As List(Of LocKeyword))
_keywords = value
End Set
End Property
End Class
Public Class LocKeyword
Inherits BaseCore
Public Keyword As String
End Class
Both Location and Keyword have their definations in the webservice project
under App_GlobalResources
The problem:
When i try to create a proxy object of type Location in an ASP.Net website
with the following code:
Dim oLoc As New Loc
oLoc.Keywords.Add(New LocKeyword())
I get an error - the Add generic method does not come up. Is there any way i
can make it? If i work on an object withen the Webservice project i dont
have any problem - Ie the Code works.
Any ideas?
Regards
Ishan