Using Externalized SQL


/ Published in: ASP
Save to your folder(s)

A reusable implementation is a must-have.


Copy this code and paste it in your HTML
  1. dim xml, rrs
  2. set xml = new XmlAspConfig
  3. if xml is Nothing then
  4. call errors.Error("Error", "Cannot create XmlAspConfig.")
  5. else
  6. call xml.Bind(Server.MapPath("IODefinition_asp.xml"))
  7. if xml.Document is Nothing then
  8. call errors.Error("Error", xml.ErrorMessage)
  9. end if
  10. end if
  11. ...
  12. dim StationName, Port
  13. ...
  14. dim xrs
  15. set xrs = xml.GetResultSet("deviceio-station-port-select", Array(StationName, Port))

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.