In my asp.net code there is a xml data reader where the values from xml has been picked and put it in the variable in the code.
I have recently changed the values in the xml file
But my code still taking the previous values instead of the new one.
please help me
Code as below:
xmlData.ReadXml(Server.MapPath("./App_Data/EmailAd.xml"))
Dim dv As DataView
dv = xmlData.Tables(0).DefaultView
If (storeSelected()) Then
dv.RowFilter = "WorkUnit = 'SRE'"
ElseIf (regionSelected()) Then
dv.RowFilter = "WorkUnit = 'REGN'"
ElseIf (areaSelected()) Then
dv.RowFilter = "WorkUnit = 'ARA'"
ElseIf (headofficeSelected()) Then
dv.RowFilter = "WorkUnit = 'HEACE'"
End If
Dim txt_toAddress As String = dv(0)("ToAddress").ToString()
Dim txt_fromAddress As String = dv(0)("FromAddress").ToString()
Value in the txt_toAddress is wrong and txt_fromAddress is right