473,472 Members | 1,728 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Push XML data to Browser

I am trying to find a way of pushing XML data to the browser.
My application (Server side) generates XML data and populates a TreeView
with that data. I also need that data to be available on the client side.
I could create an html <xml> tag and pull data from the client.
That would work but database would be hit twice.
I tried to use an asp:textbox control using its defaulValue property.
That basically works. I am able to assign the whole xml string to that
property on the server
and read that property on the client.
I had to place that control behind another control in order to hide it.
There is a problem with that though:
As soon as the page goes back to the server I am getting an error that my
form has
a dangerous code. The error message is pointing to the text box which I use
to
deliver xml to the client.
Any idea if what I am doing can be done?

Thanks
Nov 18 '05 #1
2 1256
you can send the xml to the client as an xml island as you have already
done. and also store the xml in session (if its a small xml).
<XML ID=""><xmldata/></XML>

i'm not actually sure of your complete requirement.
hth,
Av.

"Mark Goldin" <ma********@comcast.net> wrote in message
news:O9*************@tk2msftngp13.phx.gbl...
I am trying to find a way of pushing XML data to the browser.
My application (Server side) generates XML data and populates a TreeView
with that data. I also need that data to be available on the client side.
I could create an html <xml> tag and pull data from the client.
That would work but database would be hit twice.
I tried to use an asp:textbox control using its defaulValue property.
That basically works. I am able to assign the whole xml string to that
property on the server
and read that property on the client.
I had to place that control behind another control in order to hide it.
There is a problem with that though:
As soon as the page goes back to the server I am getting an error that my
form has
a dangerous code. The error message is pointing to the text box which I
use
to
deliver xml to the client.
Any idea if what I am doing can be done?

Thanks

Nov 18 '05 #2
Yes, but the question is how to populate that data island with data on the server side.
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Nick K. | last post by:
I am looking for architecture to push information from a server to a client browser. This information would be in the form of an alert. What I do not want to do is have the browser be on a timer...
3
by: Oscar Thornell | last post by:
Hi, I am looking for a technique where you from the serverside push/update a standard web browser with small piceces of data. An exempel could be sports result or stock exchange information. ...
4
by: batista | last post by:
Hello All, my prob. is that i have a web server, and i want it to send fresh data,whenver it is available(from sum other source), to a webpage. Now i used refresh, but i want to use an...
3
by: petermichaux | last post by:
Hi, I am trying to put together the last major pieces of my project's puzzle. This is more website/client-side architecture than JavaScript syntax but I hope this is a good place to ask. I'm a...
4
by: Reid LI | last post by:
I just know I can do something in HTTP header like <meta http-equiv="refresh" content="5"> but can ASP.NET push, for example, new database content to browser automatically without using browser...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.