protected void UpdateLocationInfo() { int locationID = 0; locationID = selecetedGridRow(); lblLocationID.Text = locationID.ToString(); LOCATION tempLOCATION = new LOCATION(); tempLOCATION.LOCATIONID = locationID; tempLOCATION.COUNTRY = txtCOUNTRY.Text; tempLOCATION.CITY = txtCITY.Text; tempLOCATION.BRANCH = txtBRANCH.Text; tempLOCATION.BRANCH_CODE = txtBRANCH_CODE.Text; tempLOCATION.SEQUENCE = Int32.Parse(txtSEQUENCE.Text); tempLOCATION.AGENTID = Int32.Parse(ddlAGENT.SelectedValue); tempLOCATION.AGENTRATE = decimal.Parse(txtAGENTRATE.Text); bool result = LOCATIONManager.UpdateLOCATION(tempLOCATION); lblMessage.Text = "Update Sucessfully"; }