I have a button in that control. How do i reach it programmatically.. I cant reach it by pressing the buttons ID in the code partial class code file.
if (HttpContext.Current.User.IsInRole("Administrator") || HttpContext.Current.User.IsInRole("Moderator"))
{
Button button = (Button)LoginView1.FindControl("DeleteThread");
from here