•
•
•
•
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 423,540 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 4,235 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: 3991 | Replies: 85 | Solved
![]() |
•
•
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,124
Reputation:
Rep Power: 3
Solved Threads: 47
Right, I have now got the XSLT to transform the XML to HTML. I am also able to store this new HTML file to a directory, (not specifiable by user...yet).It was as I said, I had saved the file but not writetn the newly created HTML to it!Great! now I have to concentrate on geting the newly created HTML file to have the extension .html not .xml. This I will investigate!
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,124
Reputation:
Rep Power: 3
Solved Threads: 47
•
•
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,124
Reputation:
Rep Power: 3
Solved Threads: 47
I had thought it was as simple as
fileName.ReplaceExtension(".html");
But I was wrong lol!
fileName.ReplaceExtension(".html");
But I was wrong lol!
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,124
Reputation:
Rep Power: 3
Solved Threads: 47
•
•
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,124
Reputation:
Rep Power: 3
Solved Threads: 47
what would be ideal is if the user is forced to just save the file in a hard coded directory (created if not existing) as html file. Now I have achieved half of that goal! the html is saved to (say c:/temp) hard coded dir but its saved as .xml not .html.all i want is to change the file extension before it is saved in c:/temp. Any ideas? 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!
•
•
Join Date: Sep 2007
Posts: 1,057
Reputation:
Rep Power: 4
Solved Threads: 61
You can. Right where you have "saveAs" you are saving it.
InStr is just In String. It finds the first position of a character or phrase.
So lets say the filename is:
Dim filename As String = "yucky.xml"
You use InStr to find it:
InStr(filename, ".xml")
Or use a huge one and just do everything at once:
.SaveAs((filename.remove((InStr(filename, ".xml")),(Len(filename)-(InStr(filename,".xml"))))) & ".html")
InStr is just In String. It finds the first position of a character or phrase.
So lets say the filename is:
Dim filename As String = "yucky.xml"
You use InStr to find it:
InStr(filename, ".xml")
Or use a huge one and just do everything at once:
.SaveAs((filename.remove((InStr(filename, ".xml")),(Len(filename)-(InStr(filename,".xml"))))) & ".html")
•
•
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,124
Reputation:
Rep Power: 3
Solved Threads: 47
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
.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