•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 374,169 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,407 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 2647 | Replies: 85 | Solved
![]() |
•
•
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,122
Reputation:
Rep Power: 3
Solved Threads: 46
ok. I think this is not going to work becuase the xml file is written, THEN transformed to an output of HTML. so I need to figure out a way of deleting all those excess xml files after processing. any ideas>
Last edited by majestic0110 : Feb 8th, 2008 at 5:46 am. Reason: accidently sent
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
•
•
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,122
Reputation:
Rep Power: 3
Solved Threads: 46
Great! What I have done to fix this is I added in a system.file.io.delete (savepath) after transform is complete. Now I have just the HTML file Brill. Thanks man for your help. Hope I can help you out someday!
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
•
•
Join Date: Sep 2007
Posts: 1,054
Reputation:
Rep Power: 3
Solved Threads: 61
You should just pass an argument to ApplyXSLTransformation that will set the current filename. Example:
ApplyXSLTransformation(savepath);
function ApplyXSLTransformation(string savepath)
...
...
end function
Within the ApplyXSLTransformation function, replace all "fileupload1.filename" with savepath.
If you look at it, you are creating a new file name with the .html end tag, then saving it.
Now in the function you are trying to grab the supplied filename, which still has the .xml, so it doesn't exist. This is why you get the error.
You need to pass the new file name to the function, which is "savepath". Figure out a way to pass that to the function in order to grab the correct file.
ApplyXSLTransformation(savepath);
function ApplyXSLTransformation(string savepath)
...
...
end function
Within the ApplyXSLTransformation function, replace all "fileupload1.filename" with savepath.
If you look at it, you are creating a new file name with the .html end tag, then saving it.
Now in the function you are trying to grab the supplied filename, which still has the .xml, so it doesn't exist. This is why you get the error.
You need to pass the new file name to the function, which is "savepath". Figure out a way to pass that to the function in order to grab the correct file.
•
•
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,122
Reputation:
Rep Power: 3
Solved Threads: 46
I am going to take this project another level now. I am going to use ASP.NET to call a program called ABEE (That creates .chm help files) to compile my HTMLs into one windows help file! good plan eh would that be tricky ?
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
•
•
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,122
Reputation:
Rep Power: 3
Solved Threads: 46
lol fair enough. I cant imagine it will be easy to convert from HTML to HHP (Html Help Project) using ASP without calling third party software but maybe I am wrong.....we shall see lol .thanks.
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
.net .net framework 3.0 access accounting software selection ajax asp business software code combo core custom data developer development dom dropdownlist erp systems evaluation evaluations fedora feed legacy linux microsoft module msdn net office project project management reader reuse selection skin software software selection software solutions sql technology evaluation theme vista weather web windows workflow xml xoap
- Updating and hosting client's site (Web Developers' Lounge)
Other Threads in the ASP.NET Forum
- Previous Thread: MembershipProvider encrypt/decrypt methods
- Next Thread: Textbox is not losing its previous value



Linear Mode