Good way to fetch XML from a remote URL, convert it to HTML and display it in a ASP.NET-page
- by Binary255
Hi,
The use case I want to achive is.
1. Fetch XML from a remote URL.
2. Convert it to HTML using XSLT
3. Insert the generated HTML at a position in my ASP.NET web forms page.
Alternative on the above, if 1 returns a 404:
2. Generate HTML which display an error message to the user.
Only step 3 is left as I've completed 1-2. As there are logic for handling the two execution paths and performing the XSLT-transformation I thought it would be suitable to keep it in the code-behind file.
What's a good, clean way of inserting generated HTML at a position in my ASP.NET web forms page?