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 / New Users / September 2004

Tip: Looking for answers? Try searching our database.

How to use LosFormatter from win form application?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Julia - 26 Sep 2004 12:15 GMT
How to serialize and object to use as a parameter in a URL?

Hi,

I need to serialize an object in such a way that it can be passed as
parameter in a URL

http://www.domain.com?object=%d793btng....

I did some reading and I came to the conclusion that I need to create a
custom formatter and implements the IFormatter interface

the problem is that I don't quit know how to implements the
IFormatter.Serialize function

1.How do I get the attribute of each property?

2.How can i get all properties,i guess I need to use reflection?

2.How do I track the object which already Serialized(assuming the object
contains other objects)

Note that I cannot use binary formatter or other,since the code which do the
deserialization is a client side java script

thanks in advance.
Sijin Joseph - 26 Sep 2004 17:09 GMT
The SOAP formatter outputs text so that can be used, i am not sure using
a custom IFormatter is the way to go, since there are a lot of issues
you need to consider as detailed in this link
http://www.dotnet247.com/247reference/msgs/37/189642.aspx

If you simply need to transfer the serialized object as text then you
can also use base-64 encoding to encode the binary output of
BinaryFormatter to text which can then be passed as a param in the URL.

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

> How to serialize and object to use as a parameter in a URL?
>
[quoted text clipped - 22 lines]
>
> thanks in advance.

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.