我很难理解这段代码,有人可以帮我吗?如果我没记错的话,StrStaffInfo用于存储 XML 标记。
我想知道标签是如何存储在 XML 文件中的,以及如何访问这些标签?
<script runat="server">
Public StaffInfoXML as new xmlDocument
sub Page_Load(obj as object, e as eventargs)
Dim StrStaffInfo, strConnXMLData, strConnStr, SpString as String
Dim oStaffDAW as New DAWNET.DataAccess.XMLWrapper.DAW()
Dim oConn as new ConnectionString.Access.DataBase.IO.ConnectionString
' Fetch the Connection String from Configuration File
oConn.SetPath(MapPath(""))
strConnStr = oConn.FetchConnectionString(strConnXMLData)
SpString = "StaffInformationSelect '"& Decode(LOGONUSER.ToString) &"','"& Decode(CLIENTIP.ToString) &"','"& Decode(MACHINENAME.ToString) &"'"
oStaffDAW.FetchXml(strConnStr, SpString, StrStaffInfo)
StaffInfoXML.LoadXml(StrStaffInfo)
if (StaffInfoXML.GetElementsByTagName("RECORD").Count = 0)
Response.Redirect("Application.aspx")
Response.End
End if
end sub
TagName“记录”存储在哪里?我想包含另一个标签,并检查 If 条件。