Good way to fetch XML from a remote URL, convert it to HTML and display it in a ASP.NET-page

Posted by Binary255 on Stack Overflow See other posts from Stack Overflow or by Binary255
Published on 2010-03-17T10:38:30Z Indexed on 2010/03/17 10:41 UTC
Read the original article Hit count: 195

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about ASP.NET