Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Remoting / July 2003

Tip: Looking for answers? Try searching our database.

Datatable parameter passed to remote object byref ??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Williams - 29 Jul 2003 15:47 GMT
Hi, all,
   I am working on a fairly basic utility to do file importing for our data
/ image indexing department.  I would like this to be client-server based
using remoting so that the file copy work is done on the server side rather
than the client.  Here's my question / issue.

   On the client side, consumer applications will create a datatable that
lists all of the file paths for the source files to be merged into our
central repository.  I want to hand that datatable off to a server object
via remoting.  I got the basics working, but ran into a snag.

   The server process that copies the files into the repository also
changes the file paths.  I want to populate the datatable with the new
filepaths such that the client sees the updated path.  However, because the
datatable is serializable and passed by value (i.e. a copy is made), the
changes I make on the server side are not reflected on the client.

   Is there a way to get the changes to propogate back to the client (i.e.
pass the datatable by reference rather than by value)?  I thought of
changing the return type of the remote method call and passing back the
modified dataset, but I thought I would see if perhaps I was just making
some configuration error first.

Thanks,
David
William Stacey - 29 Jul 2003 22:50 GMT
I think your right David.  You need to return the table again by value as I
don't believe a Datatable can be byref.  If wrong, look forward to the
update.

> Hi, all,
>     I am working on a fairly basic utility to do file importing for our data
[quoted text clipped - 21 lines]
> Thanks,
> David

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
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



©2008 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.