Hi Michael -

The problem is not returning the WriteOnly Property value the problem
is that with the WriteOnly Property in the Class NOTHING is returned -
none of the properties are returned in the class.  I get a Null Object
error from the onError event and the output from Fiddler is null for
the entire object...

So, for example. if I have a class like this:

Public Class Test
  Private fname as String
  Private secretID as Integer

  Public Property FirstName() As String
        Get
            Return fname
        End Get
        Set(ByVal Value As String)
            fname = Value
        End Set
    End Property

  Public Property Identification() As Integer
        Get
            Return secretID
        End Get
        Set(ByVal Value As Integer)
            secretID = Value
        End Set
    End Property
End Class

In my return I get:
  response.value.FirstName = "Rick"
  response.value.Identification = "4"

so this is no problem and the response is not null, however, when I
rearrange the class like this:

Public Class Test
  Private fname as String
  Private secretID as Integer

  Public Property FirstName() As String
        Get
            Return fname
        End Get
        Set(ByVal Value As String)
            fname = Value
        End Set
    End Property

  Public WriteOnly Property Identification() As Integer
        Set(ByVal Value As Integer)
            secretID = Value
        End Set
    End Property
End Class

I would expect to get:
  response.value.FirstName = "Rick"

But what I end up getting is null for everything without a return
object so even the property that has both a get and set statement is
null...

thanks,
Kevin


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to