can anyone tell me why this is not working
below is my code:
OnItemCommand="Repeater1_ItemCommand">
| ||||||||||
codebehind:
protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
{
if (e.CommandName == "Like")
{
foreach (RepeaterItem item in Repeater1.Items)
{
}
}
else if (e.CommandName == "Comment")
{
foreach (RepeaterItem item in Repeater1.Items)
{
Button btn = item.FindControl("btnComment") as Button;
btn.PostBackUrl = "Comment.aspx";
}
}
else if (e.CommandName == "Share")
{
}
}

Iftikar HussainRank #423 · 5.9K reputationPosted Jun 25, 2013, 11:55 PM EDT
Since you just want to redirect to another page after clicking Comment button. then it is better to do in Client side only. Please refer below code
Please let me know if you need more information.
Regards,
Iftikar
Remember to click "Mark as Answer" on the post, if it helps you.
Kavita Pharde44 reputationPosted Jun 26, 2013, 12:29 AM EDT
so can u tell me how to do this
Iftikar HussainRank #423 · 5.9K reputationPosted Jun 26, 2013, 12:37 AM EDT
and in the Comment button modify like below
Regards,
Iftikar
Remember to click "Mark as Answer" on the post, if it helps you.
Bhabani prasad Dash168 reputationPosted Jun 26, 2013, 12:43 AM EDT