S
Stan
I am looking for the best solution for this scenario:
ASP.NET needs display an editable form with 20 textboxes. Data source is
xml. Xml must be updated. if user clicks Update button on the form.
Scenario 1 - brute force
Load xml into XmlDocument,
txtName.Text = doc.SelectSingleNode ('\\bla\@bla").Value
private void OnNameChanged(object sender, System.EventArgs e)
{
doc.SelectSingleNode ("\\bla\@bla").Value = txtName.Text
}
Scenario 2 - databinind
Load DataSet from xml, hook up text box with dataset in txtName_Databinding
event I am not sure if it will work both ways.
Scenario 3 - Xml data island
I worked well in the past, not sure if it is still the best way to go..
I appreciate any opinions on that subject
-Stan
ASP.NET needs display an editable form with 20 textboxes. Data source is
xml. Xml must be updated. if user clicks Update button on the form.
Scenario 1 - brute force
Load xml into XmlDocument,
txtName.Text = doc.SelectSingleNode ('\\bla\@bla").Value
private void OnNameChanged(object sender, System.EventArgs e)
{
doc.SelectSingleNode ("\\bla\@bla").Value = txtName.Text
}
Scenario 2 - databinind
Load DataSet from xml, hook up text box with dataset in txtName_Databinding
event I am not sure if it will work both ways.
Scenario 3 - Xml data island
I worked well in the past, not sure if it is still the best way to go..
I appreciate any opinions on that subject
-Stan