/* This event is use to add the content to database with verification to the duplicate entry*/ protected void ImgSubmitService_Click1(object sender, EventArgs e) { StoreFront ObjStoreFront = new StoreFront(); int count = ObjStoreFront.AddStyle(txtStyleName.Text.Trim()); if (count == 1) { SuccesfullMessage("Style Name added successfully."); txtStyleName.Text = ""; BindGrid(); } else { ErrMessage("Duplicate Style name"); txtStyleName.Text = ""; } }