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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vijay YadavPosted Sep 7, 2012, 2:26 AM
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.
}
}
}
shahzad KhaskheliPosted Sep 6, 2012, 1:52 AM
Kunal VaishyaPosted May 29, 2012, 4:53 AM
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
Vijay YadavPosted Mar 18, 2011, 3:26 AM
Just check this,
Suthish NairPosted Mar 16, 2011, 4:32 PM