Exemplo n.º 1
0
 private void SaveMessages()
 {
     try
     {
         clsCustomer dalCustomer = new clsCustomer(Session["DBName"].ToString());
         int         custId      = int.Parse(Session["CustomerID"].ToString());
         dalCustomer.InsertCustomerMessages(custId, txtHeaderMsg.Text.Trim(), txtFooterMsg.Text.Trim(), txtSideBarMsg.Text.Trim(), txtWelcomeMsg.Text.Trim());
         lblErr.Text = "Messages Are Updated";
     }
     catch (Exception ex)
     {
         lblErr.Text = ex.Message;
     }
 }