Bryan
Freshman
Ok, I am having trouble accessing an xml file.
I have a control that uses a mainMenu.xml file to get the menu structure for a menu. You have to give the control the data source and then bind the data. Well I have this menu on several pages and right now I have to have the mainMenu.xml file in every folder that has a page that access the xml file.
What I want to be able to do is keep 1 xml file in my root directory http://localhost/ and not one in each directory.
When I set the datasource property to this xml file, what do I need to put for the path? when I use server.mapPath I get something similar to c:\inetpub\wwwroot\AxisFellowship\sermons\lotr\mainMenu.xml
The thing is I don't want to have to change the property on each page that uses the menu so it will work once i upload it to my web server.
can I use something like
Menu1.DataSource = "./mainMenu.xml"
Or is there some other way to do this?
I have a control that uses a mainMenu.xml file to get the menu structure for a menu. You have to give the control the data source and then bind the data. Well I have this menu on several pages and right now I have to have the mainMenu.xml file in every folder that has a page that access the xml file.
What I want to be able to do is keep 1 xml file in my root directory http://localhost/ and not one in each directory.
When I set the datasource property to this xml file, what do I need to put for the path? when I use server.mapPath I get something similar to c:\inetpub\wwwroot\AxisFellowship\sermons\lotr\mainMenu.xml
The thing is I don't want to have to change the property on each page that uses the menu so it will work once i upload it to my web server.
can I use something like
Menu1.DataSource = "./mainMenu.xml"
Or is there some other way to do this?