I have a FormView that allows a user to register for a company event. I want to do a couple of things with this form.
1. I need to write this data to a MS SQL database
2. I need to send an email confirmation of their registration to their email.
I know how to do both of these things, but i am having trouble doing both at the same time.
It would be nice if I could do it in one click, but I coded it into two pages to try to help simplify it.
The first page allows the user to input their information into a formview and when they click the submit button, it places those answers into session variables:Protected Sub InsertButton_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs)
Session("FirstName") = Me.FormView1.FindControl("FirstName")
Session("LastName") = Me.FormView1.FindControl("LastName")
<asp:TextBox ID="FirstName" runat="server" class="text-box" Text='<%# Bind("FirstName") %>' />
View Complete Post