Not sure about how your xml is structured - if you can add this info that would be helpful.
In the meantime is the upload control on the current page or elsewhere? If there is only one instance of an uploaded file you could go up to the root and interate through all decendants for the match. Here is one way:
now can open new window on link click ...but can u say how to open some pdf or ms word file in that window ...bucause when i attach some files to it & click on that link ...then it asks open with or save options ....
uploading files using upload control
Hi,
I have one upload control where i upload the files from the server.
I want to create a link from which i will open the uploaded file in the new window.
I want to do it using xslt ....
i tried doing somthing like this ...
<a href="{$currentPage/ancestor-or-self::*[@isDoc]/pubSelectfile}"> >> </a>
where pubSelectfile = alias of upload control
but it is not working.
How to do this?
Hello,
Not sure about how your xml is structured - if you can add this info that would be helpful.
In the meantime is the upload control on the current page or elsewhere? If there is only one instance of an uploaded file you could go up to the root and interate through all decendants for the match. Here is one way:
I know i can link it like this but i want to open that in new window...how to do that ?....
i will give the path of the file using upload control & i want to open that file in new window when ever some one clicks on that link.
Hi,
should do the trick..
Cheers,
/Dirk
Hi,
now can open new window on link click ...but can u say how to open some pdf or ms word file in that window ...bucause when i attach some files to it & click on that link ...then it asks open with or save options ....
I believe this is dependant on the user's setup for pdf files. Additionally .doc files don't render in browser windows to my knowledge.
Ok,
Thanx all for ur help...
is working on a reply...