private void lbtSelect_Click(object sender, System.EventArgs e) { partner = new Partner(); LinkButton lbtSelect1 = (LinkButton)sender; if (lbtSelect1.CommandArgument != String.Empty) { string id = lbtSelect1.CommandArgument.ToString(); partner.AddTopartner(id, index); GetData(); } }