I'm using Visual Web Developer.
I've created a page email.aspx which uses a codebehind file and is to function as a feedback form.
Let's say my feedback form looks like this in email.aspx
<form runat="server">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button" />
</form>
How can I access what the visitor enters and send myself the email?
The code I've got so far for the code behind file is:
Partial Class email
Inherits System.Web.UI.Page
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
End Sub
End Class
Any help on what I need to import etc would be appreciated.
thanks.
I've created a page email.aspx which uses a codebehind file and is to function as a feedback form.
Let's say my feedback form looks like this in email.aspx
<form runat="server">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button" />
</form>
How can I access what the visitor enters and send myself the email?
The code I've got so far for the code behind file is:
Partial Class email
Inherits System.Web.UI.Page
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
End Sub
End Class
Any help on what I need to import etc would be appreciated.
thanks.