title: Jquery PrettyPhoto Submit button
body: <p>I am using a Jquery lightbox solution called Pretty Photo. I am opening up a form in the light box and having the user click the submit button that sends an email. When the button is clicked, I receive the email fine, but there is no information in it. Can someone please help?My code is below for the ASPX and ASPX.CS</p>
  
  <p>LandingPage.ASPX.CS</p>
  
  <pre><code>     public partial class LandingPage : WebBasePage
  {
  
  
        protected void btnSubmit_Click(object sender, EventArgs e)
  {
      try
      {
          //Create the msg object to be sent
          MailMessage msg = new MailMessage();
          //Add your email address to the recipients
          msg.To.Add("vdecapite@associatedestates.com");
          //Configure the address we are sending the mail from
          MailAddress address = new MailAddress("vdecapite@associatedestates.com");
          msg.From = address;
          //Append their name in the beginning of the subject
          msg.Subject = txtName.Text + " :  " + ddlSubject.Text;
          msg.Body = txtMessage.Text + " : " + txtName.Text;
  
          //Configure an SmtpClient to send the mail.
          SmtpClient client = new SmtpClient("smtp.aecrealty.com");
          client.EnableSsl = false; //only enable this if your provider requires it
          //Setup credentials to login to our sender email address ("UserName", "Password")
          NetworkCredential credentials = new NetworkCredential("vdecapite@associatedestates.com", "Vpdc05141989");
          client.Credentials = credentials;
  
          //Send the msg
          client.Send(msg);
  
          //Display some feedback to the user to let them know it was sent
          lblResult.Text = "Your message was sent!";
  
          //Clear the form
          txtName.Text = "";
          txtMessage.Text = "";
      }
      catch
      {
          //If the message failed at some point, let the user know
          lblResult.Text = "Your message failed to send, please try again.";
      }
  }
      }
  
              }
  </code></pre>
  
  <p>LandingPage.ASPX</p>
  
  <pre><code> &lt;a href="#inline-1" rel="prettyPhoto" &gt;TEST&lt;/a&gt;
  &lt;div id="inline-1" class="hide"&gt;
         &lt;table&gt;
          &lt;!-- Name --&gt;
          &lt;tr&gt;
              &lt;td align="center"&gt;
                  Name:&lt;/td&gt;
              &lt;td&gt;
                  &lt;asp:TextBox ID="txtName"
                                  runat="server"
                                  Columns="50"&gt;&lt;/asp:TextBox&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
  
          &lt;!-- Subject --&gt;
          &lt;tr&gt;
              &lt;td align="center"&gt;
                  Subject:
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;asp:DropDownList ID="ddlSubject" runat="server"&gt;
                      &lt;asp:ListItem&gt;Ask a question&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem&gt;Report a bug&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem&gt;Customer support ticket&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem&gt;Other&lt;/asp:ListItem&gt;
                  &lt;/asp:DropDownList&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
  
          &lt;!-- Message --&gt;
          &lt;tr&gt;
              &lt;td align="center"&gt;
                  Message:
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;asp:TextBox ID="txtMessage"
                                  runat="server"
                                  Columns="40"
                                  Rows="6"
                                  TextMode="MultiLine"&gt;&lt;/asp:TextBox&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
  
          &lt;!-- Submit --&gt;
          &lt;tr align="center"&gt;
              &lt;td colspan="2"&gt;
                  &lt;asp:Button ID="btnSubmit" runat="server" Text="Submit"
                      onclick="btnSubmit_Click" UseSubmitBehavior="false"/&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
  
          &lt;!-- Results --&gt;
          &lt;tr align="center"&gt;
              &lt;td colspan="2"&gt;
                  &lt;asp:Label ID="lblResult" runat="server"&gt;&lt;/asp:Label&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>