XmlTextWriter, storing 2 values in a string

J

Jeff

Hi

..NET 3.5 (ASP.NET)

I have a webpage having a ListBox. For each item (ListItem) I want to store
2 values in the Value property. AFAIK I could create a xml document and
store that document in a string. And later retrieve document.

(2 values, because 1 values is primary key, 2. value is a foreign key)

So I thought maybe I should use XmlTextWriter to create such document and
save it to the Value property, but not sure that is a good approach

any suggestions?
 
G

Göran Andersson

Jeff said:
Hi

.NET 3.5 (ASP.NET)

I have a webpage having a ListBox. For each item (ListItem) I want to store
2 values in the Value property. AFAIK I could create a xml document and
store that document in a string. And later retrieve document.

(2 values, because 1 values is primary key, 2. value is a foreign key)

So I thought maybe I should use XmlTextWriter to create such document and
save it to the Value property, but not sure that is a good approach

any suggestions?

That sounds like overkill, and a lot of overhead. Why not just use a
separator character?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top