Last post Feb 24, 2011 11:37 AM by king-tony2
Feb 24, 2011 10:47 AM|king-tony2|LINK
Before I start, everything works if I put the absolute path in the XmlDataSource1 DataFile field.
I want to be able to use a variable name for the DataFile field and the variable would come from the VB
code where the variable name is pathXML. This is only a temporary path until I move it to the server so
I want to be able to change it in ONLY one place.
IN GLOBAL SECTION OF VB CODE
Public pathXML As String = "C:\Users\Tony\Downloads\B3 for MW2\B3 Source\BigBrotherBot-big-brother-bot-9722011\b3\conf\plugin_admin.xml"
THIS LINE AT THE END OF MY VB CODE WORKS GREAT.doc.Save(Server.MapPath(System.IO.Path.GetFileName(pathXML)))
Feb 24, 2011 10:51 AM|MetalAsp.Net|LINK
Feb 24, 2011 11:37 AM|king-tony2|LINK
That did work...
maybe in page_load: XmlDataSource1.DataFile = blahblah