strInsertCommand = "
InsertSampleService.Lists objLogin = new InsertSampleService.Lists();
objLogin.UseDefaultCredentials=true;
objLogin.Url = "http://vlnrm:100/_vti_bin/Lists.asmx";
string strListName = "Test";
XmlDocument xmlDoc = new System.Xml.XmlDocument();
System.Xml.XmlElement elBatch = xmlDoc.CreateElement("Batch");
elBatch.SetAttribute("OnError", "Continue");
elBatch.SetAttribute("ListVersion", "1");
elBatch.InnerXml = strInsertCommand;
XmlNode ndReturn = objLogin.UpdateListItems(strListName, elBatch);
string result = ndReturn.OuterXml.ToString();
txtUserName.Text = "";
txtPassword.Text = "";
txtUserName.Focus();
No comments:
Post a Comment