protected void ValidateButton_Click(object sender, EventArgs e) { XMLServiceReference.Service1Client serviceclient = new XMLServiceReference.Service1Client(); ValidateOutput.Enabled = true; ValidateOutput.Text = serviceclient.verification(xmlurlTextBox.Text, xsdurlTextBox.Text); ValidateOutput.Enabled = false; }
protected void TransformButton_Click(object sender, EventArgs e) { XMLServiceReference.Service1Client serviceclient = new XMLServiceReference.Service1Client(); ValidateOutput.Enabled = true; String htmlcontentasString=serviceclient.transformation(xmlurlTransformTextBox.Text, xslurlTextBox.Text); TransformOutput.Text = htmlcontentasString; ValidateOutput.Enabled = false; String path =@"D:/Persons.html"; if(!File.Exists(path)) { //create a new file and write into it File.WriteAllText(path, htmlcontentasString); } else { File.Delete(path); File.WriteAllText(path, htmlcontentasString); } /*catch(Exception ex) { } */ }
protected void transformButton_Click(object sender, EventArgs e) { XMLServiceReference.Service1Client client = new XMLServiceReference.Service1Client(); string html = client.transformation(XSLUrl.Text.ToString(), XMLUrl1.Text.ToString()); plainhtml.Text = Server.HtmlEncode(html); htmltext.Text = html; }
protected void validateButton_Click(object sender, EventArgs e) { XMLServiceReference.Service1Client client = new XMLServiceReference.Service1Client(); errorLabel.Text = client.verification(xsdURLText.Text.ToString(), xmlURLText.Text.ToString()); }