我现在需要datalist中绑定好的数据库的值,一个UserID和一个ArtcleID,然后想将获取到的值存在session中  可是现在获取不到这两个值现在写好的代码是这样的:    protected void DataList3_ItemDataBound(object sender, DataListItemEventArgs e)
    {
       
            Label UserIDLabel = (Label)e.Item.FindControl("UserIDLabel");
            Label ArticleIDLabel = (Label)e.Item.FindControl("ArticleIDLabel");
            if (UserIDLabel != null)
            {
                Session["UserIDV"] = UserIDLabel.Text;
                Session["ArticleID"] = ArticleIDLabel.Text;
            }
        
    }