Hi,
 
I have a javascript file that contains the following javascript
function:
 
function SaveXML() 
{  
      var objhttp = new ActiveXObject("Microsoft.XMLHTTP");
 
      objhttp.Open("POST",strSitename + "/SaveXML.asp?company=" +
strCompany, false);
      //infoxml is a div tag on the page that has the xml code in it.
      objhttp.send(infoxml.XMLDocument);
      
      alert("Save Successful.");
}
 
The SaveXML ASP page with the following code:
 
 <[EMAIL PROTECTED]>
<%
Set xmldoc = Server.CreateObject("Microsoft.XMLDOM")
 
xmldoc.async=false
xmldoc.load(Request)
 
xmldoc.save(Server.MapPath(Request.QueryString("company") &
"/info.xml"))
%>
 
Now I am planning to use an ASPX page instead of this ASP page.  So I
modified the code as:
 
private void Page_Load(object sender, System.EventArgs e)
{
XmlDocument xmldoc = new XmlDocument();
            
xmldoc.Load(Request.InputStream);
xmldoc.Save(Server.MapPath(Request.QueryString["company"] +
"/info.xml"));
}
 
In the Load of xmldoc, I am using Request.InputStream instead of Request
object used in asp code here.  The code seems to be working but Is this
correct?? And also how to make xmldoc.async = false in this .net code???
I could not find anything similar to this asp code in asp.net code.
 
Any help is appreciated.  Eagerly waiting for an answer.
 
Thank you.
 
Rajendra.
 


[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to