Dear group:
I am inexperienced in more advanced csharp techniques such as
interfaces/interfaces/collections etc. But here is what I would like to
do:
I have an object in MM Flash that contains several name-value pairs of
different type. Something like this...
var recData = [{id:0, firstName:"Mick", lastName:"Jones"},
{id:1, firstName:"Joe", lastName:"Strummer"},
{id:2, firstName:"Paul", lastName:"Simonon"}];
I pass this object to a CSharp.Net class using Flash Remoting, but I want
to turn it into a DataSet so I can update a database. I figure I can pass
this object into a method as an object argument, but from there I am at a
loss.
Some ideas I have had would be to add the object to a collection like the
NameValueCollection or the NameObjectCollection but I am not sure how to do
that. Any help grately appreciated.
Isz 1 1340
Isz,
I think that your best bet would be to use a data set. I would
recommend creating a data table with three columns, one for the id, one for
the first name, and one for the last name. Then, you can just add the
values as they come in.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Isz" <so*******@nowhere.net> wrote in message
news:KL********************@giganews.com... Dear group:
I am inexperienced in more advanced csharp techniques such as interfaces/interfaces/collections etc. But here is what I would like to do:
I have an object in MM Flash that contains several name-value pairs of different type. Something like this...
var recData = [{id:0, firstName:"Mick", lastName:"Jones"}, {id:1, firstName:"Joe", lastName:"Strummer"}, {id:2, firstName:"Paul", lastName:"Simonon"}];
I pass this object to a CSharp.Net class using Flash Remoting, but I want to turn it into a DataSet so I can update a database. I figure I can pass this object into a method as an object argument, but from there I am at a loss.
Some ideas I have had would be to add the object to a collection like the NameValueCollection or the NameObjectCollection but I am not sure how to
do that. Any help grately appreciated.
Isz This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Steven Bethard |
last post by:
In the "empty classes as c structs?" thread, we've been talking in some
detail about my proposed "generic objects" PEP. Based on a number of
suggestions, I'm thinking more and more that instead of...
|
by: DotNetJunky |
last post by:
I have built a control that runs an on-line help system. Depending on the
category you selected via dropdownlist, it goes out and gets the child
subcategories, and if there are any, adds a new...
|
by: Jim Heavey |
last post by:
Trying to figure out the technique which should be used
to add rows to a datagrid. I am thinking that I would
want an "Add" button on the footer, but I am not quite
sure how to do that. Is that...
|
by: Diffident |
last post by:
Hello All,
I want to display all the name-value pairs of the session object....how can
I print them out? i.e., suppose once a user logs in I set a session variable
login time Session = "2pm" and...
|
by: sianan |
last post by:
I tried to use the following example, to add a checkbox column to a
DataGrid in an ASP.NET application:
http://www.codeproject.com/aspnet/datagridcheckbox.asp
For some reason, I simply CAN'T get...
|
by: Trevor |
last post by:
Hey,
I am trying to do this tutorial on the microsoft site :
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/dndotnet/html/usingadonet.asp
I can get everything to work up to...
|
by: Rudy |
last post by:
Hi all,
I know this is easy, just can't seem to get it. I have a windows form, and
a text box, with a value already in it. I need to add that value to a table.
It's just one value, so the entire...
|
by: Water Cooler v2 |
last post by:
I know that we can add a single name value entry in app.config or
web.config in the configuration/configSettings/appSettings section like
so:
<add key="key" value="value" />
Question: I want...
|
by: Ben Sharvy |
last post by:
I'd like to bring a page into HTML 4 compliance, but I can't
understand the information about the <OBJECTtag that I read at help
sites. I have this in a page:
<embed src="soundfile.mov"...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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....
|
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
| |