Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: read xml from client


Message #1 by renevazquez@c... on Thu, 06 Jun 2002 11:34:44 -0400
	Well, if the client makes whatever changes to the XML and then
clicks a button to fire a trappable event, then the method I said below will
work.  If you're trying to do some magical thing where your code behind file
is constantly communicating with the client's browser, its not going to
happen without a Java applet or custom binary inside the browser itself.  It
sounds to me like you're doing the former, so the method I illustrated
should work for you.

- Chuck

-----Original Message-----
From: renevazquez@c... [mailto:renevazquez@c...]
Sent: Thursday, June 06, 2002 12:31 PM
To: ASPX_Professional
Subject: [aspx_professional] RE: read xml from client


     thanks a lot, but what I really want to do is read the xml that is in 
     the browser, it could be the xml in a data island or in a dom ojbect. 
     I want to take the changes of the xml in the client and read it on the 
     server in order to process it.
     
     If you already know how to do this please let me know..
     
     thanks


______________________________ Reply Separator
_________________________________
Subject: [aspx_professional] RE: read xml from client 
Author:  "ASPX_Professional" <aspx_professional@p...> at
INTERNET-MAIL
Date:    06/06/2002 12:20


Try embedding your XML into an asp:Literal tag inside your *.aspx with a 
RunAt="server" attribute set...
     
<asp:Literal Id="island" RunAt="server">
        <person>
                <last>Feduke</last>
                <first>Charles</first>
                <ssn>111-11-1111</ssn>
        </person>
</asp:Literal>
     
        Then you can access it in your code behind by declaring a protected
instance of a Literal:
     
protected System.Web.UI.WebControls.Literal island;
     
and use the .Text attribute of island to access the XML:
     
Page.Trace.Write("XML Island", island.Text);
     
HTH,
- Chuck
     
-----Original Message-----
From: renevazquez@c... [mailto:renevazquez@c...] 
Sent: Thursday, June 06, 2002 11:35 AM
To: ASPX_Professional
Subject: [aspx_professional] read xml from client
     
     
     Hi, I like to know how can I get in my code behind file the xml inside 
     an XML Island.
     
     thanks a lot.
     
     
     
leave-aspx_professional-1111988D@p...
om.
     



  Return to Index