protected void btnQuote_Click(object sender, EventArgs e)
    {
        Forum.CheckLogin(IsMember, this.Response);

        UctrlNewItem1.ResetControl();
        UctrlNewItem1.ItemType   = Forum.ItemType.ArticleItem;
        UctrlNewItem1.CategoryID = CategoryID;
        UctrlNewItem1.ArticleID  = ArticleID;

        UctrlNewItem1.Open();

        string Title   = "";
        string Content = "";

        try
        {
            Title   = ((Label)((RepeaterItem)((ImageButton)sender).NamingContainer).FindControl("lblTitle")).Text;
            Content = ((Label)((RepeaterItem)((ImageButton)sender).NamingContainer).FindControl("lblContent")).Text;
        }
        catch
        {
        }
        UctrlNewItem1.Reply(Title, Content);
    }
Beispiel #2
0
 protected void btnAddCategory_Click(object sender, EventArgs e)
 {
     UctrlNewItem1.ResetControl();
     UctrlNewItem1.ItemType = Forum.ItemType.Category;
     UctrlNewItem1.Open();
 }