public ActionResult ConvertToXML(string txtInputText) { ViewBag.ParsedText = CustomXmlParser.ToXml(txtInputText); ViewBag.Mode = "xml"; return(View("Index")); }
protected void btnConvertToXML_Click(object sender, EventArgs e) { txtResultXML.Text = CustomXmlParser.ToXml(txtInputText.Text); }