Beispiel #1
0
    protected void btnEdit_Click(object sender, EventArgs e)
    {
        UctrlNewItem1.ResetControl();
        UctrlNewItem1.ItemType = Forum.ItemType.Category;
        UctrlNewItem1.ItemID   = int.Parse(((ImageButton)sender).CommandArgument);

        UctrlNewItem1.Open();
    }
Beispiel #2
0
    private void AddNewTopic()
    {
        Forum.CheckLogin(IsMember, this.Response);

        UctrlNewItem1.ResetControl();
        UctrlNewItem1.ItemType   = Forum.ItemType.Article;
        UctrlNewItem1.CategoryID = CategoryID;

        UctrlNewItem1.Open();
    }
    protected void btnReply_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();
    }
    protected void btnEdit_Click(object sender, EventArgs e)
    {
        Forum.CheckLogin(IsMember, this.Response);
        Forum.CheckLogin(IsMember, this.Response);

        UctrlNewItem1.ResetControl();
        UctrlNewItem1.ItemType   = Forum.ItemType.ArticleItem;
        UctrlNewItem1.CategoryID = CategoryID;
        UctrlNewItem1.ArticleID  = ArticleID;
        UctrlNewItem1.ItemID     = int.Parse(((Label)((RepeaterItem)((ImageButton)sender).NamingContainer).FindControl("lblAItemID")).Text);
        if (((RepeaterItem)((ImageButton)sender).NamingContainer).ItemIndex == 0)
        {
            UctrlNewItem1.isMainArticleItem = true;
        }

        UctrlNewItem1.Open();
    }
    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 #6
0
 protected void btnAddCategory_Click(object sender, EventArgs e)
 {
     UctrlNewItem1.ResetControl();
     UctrlNewItem1.ItemType = Forum.ItemType.Category;
     UctrlNewItem1.Open();
 }