Exemplo n.º 1
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            BusinessObject objBO = new BusinessObject();

            objBO._Name     = txtName.Text;
            objBO._Address  = txtAddress.Text;
            objBO._Email    = txtEmailid.Text;
            objBO._MObileNo = txtMobile.Text;
            clsBusinessLayer objBL = new clsBusinessLayer();

            try
            {
                string FinalResult = objBL.InsertValue(objBO);
                if (FinalResult != null)
                {
                    Response.Write("Data Successfully Inserted!");
                }
                else
                {
                    Response.Write("Eror!");
                }
            }
            catch
            {
                throw;
            }
            finally
            {
                objBO = null;
                objBL = null;
            }
        }