protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["u"] != null && Request.QueryString["u"] == "GET") { XmlDocument oDoc = new XmlDocument(); oDoc.Load(Request.InputStream); CostCenter oCostCenter = new CostCenter(0, dsn); DataSet ds = oCostCenter.Get(Server.UrlDecode(oDoc.FirstChild.InnerXml)); Response.ContentType = "application/xml"; Response.Write("<values>"); foreach (DataRow dr in ds.Tables[0].Rows) { Response.Write("<value>" + dr["id"].ToString() + "</value><text><![CDATA[" + dr["name"].ToString() + "]]></text>"); } Response.Write("</values>"); Response.End(); } }