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 426,306 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 2,278 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

Last q on this project I promise lol

Join Date: Sep 2007
Posts: 1,057
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 4
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  
All times are GMT -4. The time now is 10:26 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC