Repeater

Edit ,Update , Delete in Repeater in asp.net

Posted on May 12, 2008. Filed under: Repeater |

<
 

 
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, [...]

Read Full Post | Make a Comment ( None so far )

    About

    Hi,I am Suresh Sharma(MCP) from Gorakhpur , UP, India.I have work on .net technology from 2 years. Key skills-Asp.net 2.0,3.5, Sql 2005,2000. Ajax.net 1.1,C#.net

    RSS

    Subscribe Via RSS

    • Subscribe with Bloglines
    • Add your feed to Newsburst from CNET News.com
    • Subscribe in Google Reader
    • Add to My Yahoo!
    • Subscribe in NewsGator Online
    • The latest comments to all posts in RSS
    • Subscribe in Rojo

    Meta

Liked it here?
Why not try sites on the blogroll...