protected void GVLinks_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName.Equals("UpdateLinkValue"))
        {
            BLL.QuestionnaireLib oQuestionnaireLib;
            try
            {
                oQuestionnaireLib = new BLL.QuestionnaireLib();
                GridViewRow gvRow = (GridViewRow)(((LinkButton)e.CommandSource).NamingContainer);
                TextBox txtValue = (TextBox)gvRow.FindControl("txtValue");
                if (txtValue != null)
                {
                    if (!txtValue.Text.Equals(string.Empty))
                    {
                        if (oQuestionnaireLib.UpdateGlobalCodesByGlobalCodeId(txtValue.Text, Convert.ToInt32(e.CommandArgument)))
                        {
                            lblMsg.Text = "Record has been updated successfully.";
                            BindGrid();
                        }
                    }
                    else
                    {
                        lblMsg.Text = "Please enter the link value.";
                        return;
                    }
                }
            }
            catch (Exception ex) { lblMsg.Text = ex.Message; }
            finally { oQuestionnaireLib = null; }

        }
    }