|
-
October 24th, 2007, 09:15 AM
#1
Variable filename in xml tag in asp
Hello
I'd appreciate any help with a problem i'm facing.
I'm looking for a way to include the results of an xml file in an asp document. The catch is that the name (and path) of the xml file is not constant. It is constructed within a javascript function and placed in a session variable. After a lot of search in google and various forums i know (including this), i couldn't find a way to use it in an xml tag.
For instance, i have placed the following statement in a .asp file:
<xml id="xmldso" src="/Dir1/test.xml" async="false"></xml>
I would like somehow to replace the "/Dir1/test.xml" fixed statement with a session variable containing the actual filename.
TIA for any help.
-------------------------
Nick A.
-
December 6th, 2007, 09:37 AM
#2
Re: Variable filename in xml tag in asp
Why can't you just use Response.Write to echo the variable name?
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|