I have written a C# .Net web site using visual studio 2008. I have a listview control (ID = lvApplicants) where I need to access a linkbutton (ID = ITEditButton") located in my listview's ItemTemplate. I have tried the attached code but with no luck. Any pointers?
protected void lvApplicants_PreRender(object sender, EventArgs e)
//LinkButton btn_Edit = (LinkButton)lvApplicants.FindControl("ITEditButton");
LinkButton btn_Edit = this.lvApplicants.FindControl("ITEditButton") as LinkButton;
string editExpired = "return confirm('Edits cannot be made to this item as it has expired');";