/// <summary> /// code to insert block details /// </summary> void insertblock() { try { block.BlockName = txtblock.Value; int issuccessfull = InsertionLayer.insertblocks(block); if (issuccessfull == 1) { lblmsg.Text = "You have Successfully Added The Block With Name " + txtblock.Value; bindblocklist(); } else { lblmsg.Text = "Technical Error Please Try After Sometime"; } txtblock.Value = ""; } catch (Exception ex) { lblmsg.Text = ex.Message; } }