Edit ,Update , Delete in Repeater in asp.net
<
asp:Repeater ID=”Rp” OnItemCommand=”Action” runat=”server”>
<ItemTemplate>
<div>
<asp:Label ID=”sno” Text=’<%#Eval(”sno”
%>‘ runat=server Visible=false></asp:Label>
<asp:Label ID=”lblname” Text=’<%#Eval(”name1″
%>‘ runat=server></asp:Label><br />
<asp:Label ID=”lblamt” Text=’ <%#Eval(”amt”
%>‘ runat=server></asp:Label>
<asp:TextBox ID=”txtname” Text=’<%#Eval(”name1″
%>‘ runat=server Visible=false></asp:TextBox><br />
<asp:TextBox ID=”txtamt” Text=’<%#Eval(”amt”
%>‘ runat=server Visible=false></asp:TextBox>
<asp:Button ID=”btn” runat=server Text=”Edit” CommandArgument=”ek” CommandName=”Action” />
<asp:Button ID=”btnd” runat=server Text=”Delete” CommandArgument=”dk” CommandName=”Action” />
</div>
</ItemTemplate>
<SeparatorTemplate><hr/></SeparatorTemplate>
</asp:Repeater>
In codebehind code
public
partial class imageclick : System.Web.UI.Page
{SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["connect"].ConnectionString);
protected void Page_Load(object sender, [...]


