XmlTextWriter, storing 2 values in a string

  • Thread starter Thread starter Jeff
  • Start date Start date
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?
 
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?
 
Back
Top