コード例 #1
0
        private void GetMemberDetails()
        {
            // Get the member id
            int? m = null;
            if (Request.QueryString["mem"] != null)
                m = Convert.ToInt32(Request.QueryString["mem"]);

            // if its not null then get the member details
            if (m != null)
            {
                // Get the member whos profile this is
                ProfileMember = MembershipHelper.ReturnMember(m);
            }
        }
コード例 #2
0
 /// <summary>
 /// Get a member by the member Id
 /// </summary>
 /// <param name="memberid"></param>
 /// <returns></returns>
 public static ForumMember ReturnMember(int? memberid)
 {
     if (memberid != null)
     {
         ForumMember cmem;
         if (!CacheHelper.Get(CacheHelper.CacheNameMember(memberid), out cmem))
         {
             cmem = new ForumMember(memberid);
             CacheHelper.Add(cmem, CacheHelper.CacheNameMember(memberid));
         }
         return cmem;
     }
     return null;
 }