Hi,
In my application I need to POST the form Inventory.aspx to a page called proxy.aspx.
Inventory.aspx has a hidden button whose POSTBACKURL is updated as proxy.aspx.
At the clientside, through javascript the click on the the hidden button is executed
document.getElementById("hidBTN").click();
All works find I can find that form is posted to proxy.aspx.
Inventory.aspx has no of controls and one of those is the following
<input id="ReportXML" type="hidden" name="hiddenXML" runat="server" value="" />
If the value of this input variable is updated as
$get('ReportXML').value = "<newdataset></newdataset>";
my form does not post at all.
So I change the value of < by &l t ; and > as & g t ; then my form posts but then at the proxy page I need to replace the & l t ; with < and & g t ; by > and then parse through the xml. I don't like this approach.
Can I post my form with the control whose value is of xml string without replacing the < and > symbols. Note that I need to post other controls also whose values are not XML strings?
Could anybody guide in this? It would be better if I can keep the POSTING by clicking of the button whose POSTBACK url is given as proxy.
Thanks.