/// <summary>
        /// ��¼ϵͳ
        /// </summary>
        /// <param name="domainUsers">�û���Ϣ</param>
        private void Login(ZhuJi.UUMS.Domain.Users domainUsers)
        {
            FormsAuthentication.SetAuthCookie(domainUsers.Username, false);

            HttpCookie usersInfo = new HttpCookie("UsersInfo");
            usersInfo["User"] = domainUsers.Username;
            usersInfo["RolesId"] = domainUsers.RolesId.ToString();
            usersInfo.Expires = DateTime.Now.AddMinutes(30);
            HttpContext.Current.Response.Cookies.Add(usersInfo);

            ReturnUrl();
        }
        private SiteMapNode GetParentNode(ZhuJi.Portal.Domain.Channel domainChannel)
        {
            int pid = domainChannel.Parent;
            if (!_nodes.ContainsKey(pid))
            {
                throw new ProviderException("���ظ��ڵ�ID");
            }

            // ���ظ��ڵ��SiteMapNode
            return _nodes[pid];
        }
        private SiteMapNode CreateSiteMapNode(ZhuJi.Portal.Domain.Channel domainChannel)
        {
            int id = domainChannel.Id;

            if (_nodes.ContainsKey(id))
                throw new ProviderException("�������ظ�ID");

            string title = domainChannel.Title;
            string url = domainChannel.SiteInfo.Url+string.Format(domainChannel.Url.ToString(), domainChannel.Id.ToString());
            string description = domainChannel.Remarks;
            string target = domainChannel.Target;

            // �½�һ��SiteMapNode
            SiteMapNode node;

            if (target.Length == 0)
            {
                node = new SiteMapNode(this, id.ToString(), url, title, description);
            }
            else
            {
                NameValueCollection attributes = new NameValueCollection();
                attributes.Add("target", target);

                node = new SiteMapNode(this, id.ToString(), url, title, description, null, attributes, null, null);
            }

            // �����SiteMapNode��ӽ��ڵ��ֵ����
            _nodes.Add(id, node);

            // �������SiteMapNode
            return node;
        }