ASP 101 - Active Server Pages 101 - Web01
The Place ASP Developers Go!

Please visit our partners


Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates














ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash





Script Output:
First NameLast NameSales

ASP DOWNLOAD

ASP.NET Version

This sample does the same thing as our standard XML to HTML (via XSL) sample except that this version retrieves the XML and XSL file via HTTP (from a remote server) instead of from the file system (from your web server).

In order for the XML processor to handle remote files you need to set the ServerHTTPRequest property to True. You can read more about the process in the following KnowledgeBase article:
PRB: Load Method Fails When Loading XML File Over HTTP

The most likely scenario I can see for this type of script would involve a remote XML file and a local XSL file so that's what I've implemented in this sample, but it's just as easy to retreive both files via HTTP. I've left the lines needed to retrieve the XSL file remotely in the code and have just commented them out.

Because of the additional HTTP requests, this version of the script will run slower then the standard version and is more likely to break due to network outages. You can deal with these issues by implementing some caching, but that's somewhat beyond the scope of the sample. If I get enough requests for it I'll add a new sample illustrating the process.


Samples

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers