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... |