Пример #1
0
 /// <summary>
 /// code to insert details in ContactUs form
 /// </summary>
 void ContactUs()
 {
     try
     {
         contact.Name    = txtname.Value;
         contact.Message = txtmsg.Value;
         contact.Email   = txtmail.Value;
         contact.Contact = Convert.ToInt64(txtno.Value);
         int Issuccessfull = InsertionLayer.ContactUs(contact);
         if (Issuccessfull == 1)
         {
             lblmsg.Text = "You Have Successfully Submitted Your Query......";
             ClearSection();
         }
         else
         {
             lblmsg.Text = "Technical Error ! Please try After Sometime";
         }
     }
     catch (Exception ex)
     {
         lblmsg.Text = ex.Message;
     }
 }