So I added this code to the .ascx page itself:
public void Page_Load(object sender, EventArgs e)
this.txtExpireDate.Text = "HIYA!!!!"; //ThisWorks
this.allPosts.ItemDataBound += new RepeaterItemEventHandler(allPosts_ItemDataBound2);
void allPosts_ItemDataBound2(object sender, RepeaterItemEventArgs e)
if(e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)
Telerik.Forums.IPost post = (Telerik.Forums.IPost)e.Item.DataItem;
txtExpireDate.Text += "P"; //This doesn't work;
if(post != null)
var postId = post.ID;
txtExpireDate.Text += post.ID.ToString() + " "; //This doesn't work;
It seems that the listener isn't firing (maybe it's added after the code behind runs?).
Another question I have however, is what's passed to the page? Is there a parentId or threadId sent as a parameter? I don't really need to get each post of a thread, I just need the parentId / threadId and I can set its expiredate / children expire date, without needing to run through the whole repeater.