soapygus
asked on
Retrieving server generated XML with JQuery
Hello Experts,
I am new to this concept so if there is a better way to accomplish the following please let me know.
Currently, I have an data.aspx page and in the Page Load I get data from a db and create a stringbuilder object (myXML) and pass that back to the calling page in an HTTP Response stream like so: Response.Write(myXML)
I would like to parse this XML from the calling page using JQuery, but I am having trouble getting this to work. I've found some helpful documentation using JQuery to parse XML given and XML document. However, I don't have a document. I am sending the xml via the Response.Write method.
Any help is appreciated. If there is a better way to send the XML string into the calling page, I'm open to that. I just need to be able to call the XML string using JQuery.
I am new to this concept so if there is a better way to accomplish the following please let me know.
Currently, I have an data.aspx page and in the Page Load I get data from a db and create a stringbuilder object (myXML) and pass that back to the calling page in an HTTP Response stream like so: Response.Write(myXML)
I would like to parse this XML from the calling page using JQuery, but I am having trouble getting this to work. I've found some helpful documentation using JQuery to parse XML given and XML document. However, I don't have a document. I am sending the xml via the Response.Write method.
Any help is appreciated. If there is a better way to send the XML string into the calling page, I'm open to that. I just need to be able to call the XML string using JQuery.
protected void Page_Load(object sender, EventArgs e)
{
//code that gets data from database
//code that constructs xml with stringbuilderXml
//Write object to an HTTP response stream
Response.Write(stringbuilderXml)
}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.