Hi:

I have programmed a Web Service called Customer.asmx.

This is the code:

<%@ WebService Language="VB" Class="Customer"%>
Imports System.Web.Services
<WebService(Namespace:="DigitalSnd1")> _
Public Class Customer
Public Name As String
<WebMethod()> Public Sub Custname()
Name="The name is John"
End Sub
End Class




I also have programmed an aspx to call this Web Service

<%@ Page Language="VB" Debug="true"%>
<html>
<head>
<title>Customer</title>
</head>
<body>
<%
Dim theCustom As new Customer()

theCustom.Custname()
%>
<%=theCustom.Name%>
</body>
</html>


I get an error at this line

<%=theCustom.Name%>

Compiler Error Message: BC30456: 'Name' is not a member of 'Customer'.



What Could be wrong If I have "Name" declared as public variable in the web service code??

Thanks!!