473,320 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

any workaround for NameValueCollection serialization?


Hi,

I am trying to serialize Request.Params in a webform page and I understand
that .NET cannot
serialize this kind of object Yet

is there any workaround?

Thanks.
Jul 21 '05 #1
3 1506
pm
You could use a Hashtable, Dataset or some other construct and serialize.

"Julia" wrote:

Hi,

I am trying to serialize Request.Params in a webform page and I understand
that .NET cannot
serialize this kind of object Yet

is there any workaround?

Thanks.

Jul 21 '05 #2
Why do you need to serialize the "parameters" of a web page. Likely you'll
use this once deserialized under some other form.
See if you can serialize under the final structure you'll use.

Patrice

--

"Julia" <co********@012.net.il> a écrit dans le message de
news:Ov**************@tk2msftngp13.phx.gbl...

Hi,

I am trying to serialize Request.Params in a webform page and I understand
that .NET cannot
serialize this kind of object Yet

is there any workaround?

Thanks.

Jul 21 '05 #3
"Why do you need to serialize the "parameters" of a web page"

Because I want to construct an object from the parameters,and this is the
most generic way for me

Maybe there is a suitable data structure to which I can copy the
NameValueCollection and than serialize it?

I don't wnt to use Soap Formatter since I hardly know XSL to convert the
result.

Thanks.


"Patrice" <no****@nowhere.com> wrote in message
news:uI**************@TK2MSFTNGP15.phx.gbl...
Why do you need to serialize the "parameters" of a web page. Likely you'll
use this once deserialized under some other form.
See if you can serialize under the final structure you'll use.

Patrice

--

"Julia" <co********@012.net.il> a écrit dans le message de
news:Ov**************@tk2msftngp13.phx.gbl...

Hi,

I am trying to serialize Request.Params in a webform page and I understand that .NET cannot
serialize this kind of object Yet

is there any workaround?

Thanks.


Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Walter Zydhek | last post by:
I am having a problem using the NameValueCollection type. If I remove one of the items while iterating through an collection of this type, I end up with an exception. This exception is:...
7
by: davidw | last post by:
I always use NameValueCollection. But I read an article says the only differece between Hashtable and NameValueCollection is that NameValueCollection could accept more than one value with same key?...
3
by: Julia | last post by:
Hi, I am trying to serialize Request.Params in a webform page and I understand that .NET cannot serialize this kind of object Yet is there any workaround? Thanks.
0
by: Julia | last post by:
Hi, I am looking for the easiest way to convert NameValueCollection to XML suitable for deserizliation of a class More: I have a Message Object which need to be desrialzie from a...
0
by: Yuri Vanzine | last post by:
Saw this requested awhile ago on Matthew Reynolds's blog here: http://www.dotnet247.com/247reference/msgs/11/57944.aspx Problem: often times I deal with querystring-formatted strings w/o the...
0
by: Alan Samet | last post by:
If you need to get in touch with me, be sure to remove the "newsgroups" from my email address. I've developed a quick-and-dirty workaround for putting System.Web.UI.WebControls.RadioButton...
3
by: Mike Logan | last post by:
We are trying to serialize the Request.ServerVariables collection (NameValueCollection) to an XML formatted string, to insert into a database. The problem we are running into is that most of the...
4
by: Kerr | last post by:
Hi all, I've been scouring the internet for help with this problem and every occurance i've seen reconstructs the problem but no one seems to have a solution. Hoping that you guys can help me. ...
2
by: MrDotNet | last post by:
Hi I want pass NameValueCollection as parameter in webmethod. I try it but that give me error. Here is Error. You must implement the Add(System.String) method on...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.