C# ASP.NET 2 Passing XML data to client browser JavaScript functio

G

Guest

Hi,

I am working on a multimedia-project whereby an XML File has to be loaded
into the client browser's memory and then being used through client side
JavaScript.

The actual XML file to be loaded is being determined at runtime as followes:
The user clicks on a clickable image which triggers the loading of a new
aspx page.
The location on the image itself will signal which XML file must be read and
used by client side JavaScript in the new page.

How can I pass this file's data from C# ASP.NET 2 code behind to the
client's browser memory so that it then can be used by JavaScript?

Would it be better to make use of a JSON representation of the XML file in
order to achieve a more browser independant solution? If it is better to use
JSON, would there be be any problem with unicode characters being passed?

Either way the server must send the XML file data to the client's browser so
that it can be processed through client side JavaScript. How can this
functionality be achieved?

Any help is much appreciated.

-- Arjan
 
M

Mr. Arnold

Either way the server must send the XML file data to the client's browser
so
that it can be processed through client side JavaScript. How can this
functionality be achieved?

Any help is much appreciated.

Have you looked at Ajax Pro for .Net, which is free? There should be plenty
of examples out on Google on how to do it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top