Hi Guys...
how r u all?
My Question is that, how can we add link button in asp.net Repeater Control in the table row .. i tried but unfortunatly i was unable to do this ... so please help me and reply me as soon as possible
Thanks.
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Suthish NairRank #92 · 22.8K reputationPosted Mar 16, 2011, 12:32 PM EDT
Vijay YadavRank #1,637 · 943 reputationPosted Mar 17, 2011, 11:26 PM EDT
Just check this,
Kunal VaishyaRank #990 · 2K reputationPosted May 29, 2012, 12:53 AM EDT
you can desiggn like this in Table
//--------------------------------------------------------------------------------------------
Edit
//----------------------------------------------------------
//and Code Like This As Per Our Requirement
protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
{
Response.Write(e.CommandArgument.ToString());
}
you can get primarry key from e.Command Argument you can do Operation by Using e.Command Argument
shahzad Khaskheli18 reputationPosted Sep 5, 2012, 9:52 PM EDT
Vijay YadavRank #1,637 · 943 reputationPosted Sep 6, 2012, 10:26 PM EDT
You can add image button in repeater as shown below:
asp:Repeater ID="Repeater1" runat="Server" >
In Code behind,
protected void rpimage_Click(object sender, ImageClickEventArgs e)
{
ImageButton img =sender as ImageButton;
if (img != null)
{
RepeaterItem rp = img.NamingContainer as RepeaterItem ;
if (rp != null)
{
//code to display details.
}
}
}