예제 #1
0
        /// <summary>
        /// 展示用户成功帮助别人的次数
        /// </summary>
        protected void DisplayHelpingCount()
        {
            // HelpingCount.InnerText = "0";

            try
            {
                Int64 userId = GetUserId();

                if (userId == -1)
                {
                    Response.Redirect("/layout/SignIn.aspx");
                    return;
                }

                HelpingCount.InnerText = NoticeService.GetHelpingCount(userId).ToString();
            }
            catch (Exception ex)
            {
                PromptInfo.Text = ex.Message;
            }
        }