Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
DonorStream.Load(Application.StartupPath & "/donor.xml") 'My.Resources.Donor)
RecStream.Load(Application.StartupPath & "/receiver.xml") 'My.Resources.Receiver)
LinkStream.Load(Application.StartupPath & "/link.xml") 'My.Resources.Link)
ReadLink()
End Sub
Public Sub ReadLink()
FillCombos()
btnNext.PerformClick()
End Sub
Public Sub FillCombos()
Dim RecName As XmlNodeList = RecStream.SelectNodes("Root/Receiver")
Dim DonorName As XmlNodeList = DonorStream.SelectNodes("Root/Donor")
Dim donorlst As New DataTable()
donorlst.Columns.Add("ID")
donorlst.Columns.Add("Name")
Dim reclst As New DataTable
reclst.Columns.Add("ID")
reclst.Columns.Add("Name")
For Each node As XmlNode In RecName
reclst.Rows.Add(New Object() {node.ChildNodes(0).InnerText, node.ChildNodes(1).InnerText})
Next
For Each node As XmlNode In DonorName
donorlst.Rows.Add(New Object() {node.ChildNodes(0).InnerText, node.ChildNodes(1).InnerText})
Next
CmbDonor.DataSource = donorlst
CmbDonor.DisplayMember = "Name"
CmbDonor.ValueMember = "ID"
CmbRec.DataSource = reclst
CmbRec.DisplayMember = "Name"
CmbRec.ValueMember = "ID"
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications
TRUSTED BY
ASKER
This question is marked Neglected. Does that mean it was asked imprioperly?