Example #1
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            busWidth buscat = new busWidth();
            FrameWork.Width frmcat = new FrameWork.Width();
            frmcat.Widths = this.txtCategory.Text;

            isExisting = isUserExisting();
            if (isExisting.Equals(true))
            {
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Width existing')", true);
            }
            else
            {
                buscat.insertCategory(frmcat);
            }
            DataTable dt = new DataTable("User");
            dt = buscat.allCategories();
            GridView1.DataSource = dt;
            GridView1.DataBind();
        }