Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / April 2005



Tip: Looking for answers? Try searching our database.

Returning custom objects with asp.net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mossu - 14 Apr 2005 23:04 GMT
Hi, I'm quite new to Flash remoting, and I am trying to return an object that I
created in ASP.Net and every example I can find only returns strings.

Let's say I have this class in a loadPerson.aspx page, is it the proper way to
use this functionnality? :

Public Class Person

  Private mvarName As String

  Public Property Name() As String
                Get
                    Return mvarName
                End Get
                Set(ByVal Value As String)
                    mvarName = Value
                End Set
            End Property
  End Property  

<Macromedia:Flash ID="Flash" Runat="Server" />
  Dim oMother As New Person
  oMother.Name = "Julie"
  Flash.Result = oMother

Then, how can I access the object properties  once it is returned in the
function loadPerson_Result(result) ?

Thanks a lot.

jG
tutsamewasa - 18 Apr 2005 10:33 GMT
Hi,

Well you just can't send any object to and fro Remoting. The objects
that you can send to and fro Remoting must be in the list of both the
language like the String is supported in both Flash and .Net, To return
complex data like in the example you have given use XML object.

Hope this helps

If you need further assistance please let me know.

Good Luck

Hemendra Singh Shaktawat

Mindfire Solutions
www.mindfiresolutions.com
tutsamewasa - 18 Apr 2005 13:12 GMT
Hi,

Well you just can't send any object to and fro Remoting. The objects
that you can send to and fro Remoting must be in the list of both the
language like the String is supported in both Flash and .Net, To return
complex data like in the example you have given use XML object.

Hope this helps

If you need further assistance please let me know.

Good Luck

Hemendra Singh Shaktawat

Mindfire Solutions
www.mindfiresolutions.com 
mossu - 18 Apr 2005 15:20 GMT
Thank you for your answer Hemendra (I hope this is your first name, and I
apologize in advance if it isn't).

I think this might help, and I'll be sure to check soon if I can make it work
for me.  If I have any other questions, I'm glad to know I can ask someone now.

Thanks again, jG
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.