Hi,
I am dynamically creating linkbutton in the item data bound event of the rad grid. i have added click event for link button. but the thing is the Click event not at all firing when i click the linkbutton. But the dynamic buttons are get vanished after the click. Pls give me the solution. its very urgent. my sample code is
Thanks,
Jeevitha
I am dynamically creating linkbutton in the item data bound event of the rad grid. i have added click event for link button. but the thing is the Click event not at all firing when i click the linkbutton. But the dynamic buttons are get vanished after the click. Pls give me the solution. its very urgent. my sample code is
foreach (MemberDetail memberDetail in newShopper.MemberDetails)
{
linkMemberName =
new LinkButton();
tdMember =
new HtmlTableCell();
tdEditMember =
new HtmlTableCell();
trowMember =
new HtmlTableRow();
linkMemberName.ID =
"id1";
linkMemberName.Text = memberDetail.FirstName;
linkMemberName.CommandArgument = memberDetail.ID.ToString();
linkMemberName.Click +=
new EventHandler(linkMemberName_Click);
tdMember.Controls.Add(linkMemberName);
tblMemberDetails.Controls.Add(trowMember);
}
void linkMemberName_Click(object sender, EventArgs e)
{
throw new NotImplementedException();
}
Thanks,
Jeevitha