I have a typical problem. I have a string which is actually a xml string. I want to load it to web browser as a xml file.
I can do it as:- save the string as an xml file in to the local drive and supply the file path to the web browser's Navigate function. It will loads that file in to the browser.
But I dont want to do as I explained. Is it possible to create and load the file from memory to the web browser control. Can any one put some light in to this. If possible, I need few more options. I want to disable the drag and drop facility.
Thanking you in advance
Vishal G
Mike GoldPosted May 14, 2007, 6:41 PM
-Mike
Vishal GPosted May 12, 2007, 8:27 AM
.Net client is receiving collection of object from the server side. One of its field is a string ( saved xml as string in database ) . Client formats it back to xml and show to the user. I am using webbrower control to show the xml. Why I am using webbrowser is because it allows to collapse and expand the xml nodes.
Webbrowser requires file path to show the xml file. So for that I am doing it as follows.
First convert that string to xml and save it as xml file in to the local drive. Supply the path to the web browser control.
My query : If I am doing it right way. Then how I can avoid it saving to the local drive. Otherwise suggest me an alternative.
Thanks in advance
Vishal G
Mike GoldPosted May 10, 2007, 3:53 PM