User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,122
Reputation: majestic0110 is on a distinguished road 
Rep Power: 3
Solved Threads: 46
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Veteran Poster

Re: Last q on this project I promise lol

  #81  
Feb 8th, 2008
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!
Reply With Quote  
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,122
Reputation: majestic0110 is on a distinguished road 
Rep Power: 3
Solved Threads: 46
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Veteran Poster

Re: Last q on this project I promise lol

  #82  
Feb 8th, 2008
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!
Reply With Quote  
Join Date: Sep 2007
Posts: 1,054
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Last q on this project I promise lol

  #83  
Feb 8th, 2008
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.
Reply With Quote  
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,122
Reputation: majestic0110 is on a distinguished road 
Rep Power: 3
Solved Threads: 46
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Veteran Poster

Re: Last q on this project I promise lol

  #84  
Feb 8th, 2008
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!
Reply With Quote  
Join Date: Sep 2007
Posts: 1,054
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Last q on this project I promise lol

  #85  
Feb 8th, 2008
I have no clue. I don't use third party programs. I make my own work
Reply With Quote  
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,122
Reputation: majestic0110 is on a distinguished road 
Rep Power: 3
Solved Threads: 46
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Veteran Poster

Re: Last q on this project I promise lol

  #86  
Feb 8th, 2008
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!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ASP.NET Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 4:21 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC