Thanks for help! The sample help me a lot!
but there is another problem...
Dim i As Integer
Dim ds As New DataSet
Try
'Refill the dataset
ds.ReadXml(Serv er.MapPath("Inf ormation.xml"))
'Make the Updates
For i = 1 To ds.Tables(0).Ro ws.Count
If ds.Tables(0).Ro ws(i).Item("ID" ) = txtInputID.Text Then
lbl.Text = "Update record"
Else
lbl.Text = "No match record"
End If
Next
Catch
'Redirect to Error Page or take other action to handle error.
Finally
ds.Dispose()
End Try
it did not have response, if
ds.Tables(0).Ro ws(0).Item("Job ID") = txtInputJobID.T ext Then
it can only find the first record in the xml doc
is the code wrong?
thanks
Allan
I have a xml document created
<?xml version="1.0" standalone="yes " ?>
<Group>
<Information>
<ID>44</ID>
<Detail>Hello World</Detail>
</Information>
<Information>
<ID>45</ID>
<Detail>My Text</Detail>
</Information>
<Information>
<ID>46</ID>
<Detail>Text Information</Detail>
</Information>
</Group>
I want to know the codes to modify <Detail> according to the <ID>....
for example i enter
textbox1.tex t = 44
textbox2.tex t = texts
It can change
<ID>44</ID>
<Detail>Hell o World</Detail>
to
<ID>44</ID>
<Detail> texts </Detail>
Are there any codes can do this?
thanks for help
--
Message posted via DotNetMonster.c om
http://www.dotnetmonster.com/Uwe/For...p-net/200508/1