View Single Post
  #4 (permalink)  
Old 03-05-2008, 10:04 PM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Default Re: Pass Complex Data from flash to .Net or any other server side script

Hi,
This is the code you should use in .Net. This will get the xml data and save it as an test.xml file in the readwrite folder.

protected void Page_Load(object sender, EventArgs e)
{
string filePath = Server.MapPath("readwrite/test.xml");
//string filePath = @"D:\temp\test.xml";
Response.ContentType = "text/xml";
XmlDocument doc = new XmlDocument();
try
{
XmlTextReader reader = new XmlTextReader(Request.InputStream);
doc.Load(reader);
doc.Save(filePath);
reader.Close();
}
catch (Exception ex)
{
string msg = ex.Message;
}
}
__________________
The OXYGEN
Delivers edgy, intelligent Technology to all...
Reply With Quote