Note that there are some explanatory texts on larger screens.

plurals
  1. POaspx Form to XML File
    text
    copied!<p>Basically what I am trying to is:</p> <ol> <li>Catch a form submission;</li> <li>Save it to an XML file;</li> <li>Send it to another server.</li> </ol> <p>My main issue is not being able to find much information about <strong>XMLBuilder</strong>. This following link looks like something I need, but I can only use XML Builder: <a href="https://stackoverflow.com/questions/2723850/creating-a-contact-form-in-visual-studio-aspx-and-saving-to-an-xml-file-when-clic">Creating a Contact form in Visual Studio ASPX and saving to an XML file when clicking SUBMIT</a></p> <p>My code is as follows:</p> <p><strong>Default.aspx:</strong></p> <pre><code>&lt;%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="ToXMLApp.ToXMLForm" %&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head runat="server"&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;form id="ToXMLForm" runat="server" defaultbutton="Submit"&gt; &lt;div&gt; &lt;asp:Label runat="server"&gt;Firstname&lt;/asp:Label&gt;&amp;emsp;&lt;asp:TextBox ID="Firstname" runat="server"&gt;&lt;/asp:TextBox&gt;&lt;br /&gt; &lt;asp:Label runat="server"&gt;Surname&lt;/asp:Label&gt;&amp;emsp;&lt;asp:TextBox ID="TextBox1" runat="server"&gt;&lt;/asp:TextBox&gt;&lt;br /&gt; &lt;asp:Button ID="Submit" runat="server" Text="Submit" OnClick="Submit_Click" /&gt; &lt;/div&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p><strong>Default.aspx.vb:</strong></p> <pre><code>Protected Sub Submit_Click(ByVal sender As Object, ByVal e As System.EventArgs) // XMLBuilder new xml file // save form results as xml fields // save xml file // send XML file (this is not as important atm) ToXMLForm.InnerHTML? // how do I retrieve inputs? End Sub </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload