hi,
i have repeater with feild id bound to it.
ex.
now in .cs file when i click on delete button, i m passing this id to sql and deleting the record.
.
in .cs what i have done is..
i m unable to retreive that linkid..
any help with code will be appreciated
i have repeater with feild id bound to it.
ex.
Code:
<td><asp:LinkButton Runat="server" ID="lnkDelete" CommandName="DeleteMe" CommandArgument='<%# DataBinder.Eval(Container,"DataItem.Id") %>' >Delete</asp:LinkButton></td>
.
in .cs what i have done is..
Code:
protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e) { int JID = Convert.ToInt32(CryptWrapper.decode(Request.QueryString["vID"])); string linkid = Convert.ToString(e.CommandArgument); int id = Convert.ToInt32(linkid); EstateAgentsCollection es = new EstateAgentsCollection(); es.Delete(JID,id); Repeater1.DataSource=es; Repeater1.DataBind(); }
any help with code will be appreciated
Comment