protected void gvItem_RowCommand(object sender, GridViewCommandEventArgs e) { if (Convert.ToString(e.CommandName) == "Modify") { //btnSubmit.Text = "Update"; string Id = Convert.ToString(e.CommandArgument); lblId.Text = Id; KBLL.KeyId1 = Convert.ToInt64(Id); KBLL.SelectInfo(KBLL); try { txtKeyword.Text = Convert.ToString(KBLL.KeywordName1); txtSyntax.Text = Convert.ToString(KBLL.KeywordSyntax1); txtDiscrip.Text = Convert.ToString(KBLL.KeyDiscip1); ddlWebSite.SelectedValue = Convert.ToString(KBLL.WebsiteGroup1); txtPurpose.Text = Convert.ToString(KBLL.KeywordPurpose1); btnSubmit.Text = "Update"; } catch (Exception ex) { } } }