Howdy, here is my problem. I have a form on my site that when filled out, emails the response to me. I configured it so that the Label underneath confirms to the user the request was submitted. WHat is missing is the form wiping itself clean. Below is the code behind (I am using c# by the way). What do I need to do for the form to reset?
try
{
MailMessage message = new MailMessage();
message.To.Add("emal addy here");
message.From = new MailAddress("
[email protected]");
message.Subject = "Test Email";
message.Body = "Name: " + FirstName.Text + " " + LastName.Text + "\r\n" + "Email: " + EmailAddress.Text + "\r\n" + "Phone: " + Phone.Text + "\r\n" + "Zip Code: " + ZipCode.Text + "\r\n" + "Plumbing Need: " + PlumbingNeed.Text;
System.Net.Mail.SmtpClient oClient = new System.Net.Mail.SmtpClient();
oClient.Send(message);
}
catch (Exception ex)
{
Response.Write("Send failure: " + ex.ToString());
}
Any help would be appreciated.
"Freedom is the right of all sentient beings" - Optimus Prime