本文整理汇总了C#中Pager.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# Pager.ToString方法的具体用法?C# Pager.ToString怎么用?C# Pager.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pager
的用法示例。
在下文中一共展示了Pager.ToString方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetGalleryLister
/// <summary>
/// Populates the gallery photos
/// </summary>
private void GetGalleryLister(int Page)
{
int NumberOfPhotos = Photo.GetPhotoCountPhotoCollectionID(DefaultGallery.PhotoCollectionID);
photos = Photo.GetPhotoByPhotoCollectionIDWithJoinPager(DefaultGallery.PhotoCollectionID, Page, 16);
StringBuilder sbHTML = new StringBuilder();
for (int i = 0; i < photos.Count; i++)
{
object[] parameters = new object[2];
parameters[0] = ParallelServer.Get(photos[i].ThumbnailResourceFile.FullyQualifiedURL) + photos[i].ThumbnailResourceFile.FullyQualifiedURL;
parameters[1] = i.ToString();
sbHTML.AppendFormat(@"<li>
<a href='javascript:showPhoto({1});'><img src='{0}' alt='thumb' /></a>
</li>", parameters);
}
Pager pager = new Pager("/gallery/","g="+URLPhotoCollectionID+"&m="+ViewingMember.WebMemberID, Page, NumberOfPhotos);
pager.PageSize = 16;
PagerHTML = pager.ToString();
NumberOfPhotosHTML = NumberOfPhotos.ToString();
pageCount =(int)Math.Ceiling((double)NumberOfPhotos / pager.PageSize);
photoLength = photos.Count;
GalleryListerHTML = sbHTML.ToString();
}
示例2: GetVideoLister
//.........这里部分代码省略.........
case MemberOrderVideo.NumberOfViews:
OrderByClause = "NumberOfViews";
break;
case MemberOrderVideo.NumberOfComments:
OrderByClause = "NumberOfComments";
break;
case MemberOrderVideo.TotalVoteScore:
OrderByClause = "TotalVoteScore";
break;
}
List<Next2Friends.Data.Video> Videos = Next2Friends.Data.Video.GetMemberVideosWithJoinOrdered(ViewingMember.MemberID, privacyType, OrderByClause);
NumberOfVideos = Videos.Count;
int DisplayNumberOfVideos = 28;
int StartIndex = PageTo * DisplayNumberOfVideos - DisplayNumberOfVideos;
int EndIndex = StartIndex + DisplayNumberOfVideos;
StringBuilder sbHTML = new StringBuilder();
for (int i = StartIndex; i < EndIndex; i++)
{
if (Videos.Count <= i)
{
break;
}
object[] parameters = new object[14];
parameters[0] = ParallelServer.Get(Videos[i].ThumbnailResourceFile.FullyQualifiedURL) + Videos[i].ThumbnailResourceFile.FullyQualifiedURL;
parameters[1] = Videos[i].TimeAgo;
parameters[2] = Videos[i].VeryShortTitle;
parameters[3] = Videos[i].VeryShortDescription;
parameters[4] = Videos[i].NumberOfViews;
parameters[5] = Videos[i].NumberOfComments;
parameters[6] = Videos[i].Member.NickName;
parameters[7] = Videos[i].Category;
parameters[8] = Videos[i].WebVideoID;
parameters[9] = Videos[i].Duration;
parameters[10] = Videos[i].TotalVoteScore;
parameters[11] = Videos[i].Member.WebMemberID;
parameters[12] = RegexPatterns.FormatStringForURL(Videos[i].Title);
parameters[13] = Videos[i].Title;
// sbHTML.AppendFormat(@"<li>
// <div class='vid_thumb'> <a href='/video/{12}/{8}'><img src='{0}' width='124' height='91' alt='{13}' /></a></div>
//
// <div class='vid_info'>
//
// <p class='metadata'><a href='/video/{12}/{8}'>{2}</a></p>
// <p class='timestamp'>{1}</p>
// <div class='vote vote_condensed'><span class='vote_count'>{10}</span></div>
// <p class='metadata'>Views: {4}<br />
// Comments: <a href='#'>{5}</a><br />
// </p>
// </div>
// </li>", parameters);
sbHTML.AppendFormat(@"<li style='width:140px;clear: none;margin-left:3px'>
<div class='vid_thumb'> <a href='javascript:displayMiniVideo(""{8}"",""{13}"");'><img src='{0}' width='124' height='91' alt='{8}' /></a></div>
</li>", parameters);
// object[] parameters = new object[10];
// parameters[0] = ParallelServer.Get(videos[i].ThumbnailResourceFile.FullyQualifiedURL) + videos[i].ThumbnailResourceFile.FullyQualifiedURL;
// parameters[1] = videos[i].Duration.ToString();
// parameters[2] = videos[i].VeryShortTitle;
// parameters[3] = TimeDistance.TimeAgo(videos[i].DTCreated);
// parameters[4] = videos[i].VeryShortDescription;
// parameters[5] = videos[i].NumberOfViews;
// parameters[6] = videos[i].WebVideoID;
// parameters[7] = videos[i].NumberOfComments;
// parameters[8] = videos[i].Title;
// parameters[9] = RegexPatterns.FormatStringForURL(videos[i].Title);
// sbHTML.AppendFormat(@"<li>
// <div class='vid_thumb'> <a href='/video/{9}/{6}'><img src='{0}' width='124' height='91' alt='{8}' /></a></div>
// <div class='vid_info'>
// <h3><a href='/video/{9}/{6}'>{2}</a></h3>
// <p class='timestamp'>{3}</p>
// <p>{4}</p>
// <p class='metadata'>Views: {5} Comments: {7}</p>
// </div>
// </li>", parameters);
}
DefaultHTMLLister = (NumberOfVideos > 0) ? "<ul class='profile_vid_list2' style='padding: 15px 0pt 20px 14px;' id='ulContentLister'>" + sbHTML.ToString() + "</ul>" : "<p>Member currently has no Videos.</p>";
string MiscPagerParams = string.Empty;
if (CurrentTab != MemberOrderVideo.Latest)
MiscPagerParams = "&to=" + ((int)CurrentTab).ToString();
Pager pager = new Pager("/users/" + ViewingMember.NickName + "/videos/", MiscPagerParams, PageTo, NumberOfVideos);
pager.PageSize = 20;
DefaultHTMLPager = pager.ToString();
}
示例3: Bind
public void Bind(int Page)
{
member = (Member)Session["Member"];
int NumberOfPhotos = Photo.GetPhotoCountPhotoCollectionID(DefaultPhotoCollectionID);
photos = Photo.GetPhotoByPhotoCollectionIDWithJoinPager(DefaultPhotoCollectionID, Page, 10);
PhotoCollection LocalGallery = new PhotoCollection(DefaultPhotoCollectionID);
GalleryName = LocalGallery.Name + " (" + NumberOfPhotos + ")";
// bit if a hack to get the webphotocollectionID
photoCollections = member.PhotoCollection;
for (int i = 0; i < photos.Count; i++)
{
PhotoCollection photoCol = GetLocalGalleryByPhotoColletionID(photos[i].PhotoCollectionID);
photos[i].WebPhotoCollectionID = photoCol.WebPhotoCollectionID;
}
Pager pager = new Pager("/myphotos/",Page, NumberOfPhotos);
pager.PageSize = 10;
pager.MiscParameterString = (DefaultWebPhotoCollectionID != null) ? "pc=" + DefaultWebPhotoCollectionID : string.Empty;
PagerHTML = pager.ToString();
PhotoRepeater.DataSource = photos;
PhotoRepeater.DataBind();
}
示例4: GenerateLister
public void GenerateLister(List<Member> Members, int TabType, int Page, bool IsFriend)
{
StringBuilder sbHTMLList = new StringBuilder();
int PageSize = 10;
int StartAt = (Page * PageSize) - PageSize;
for (int i = StartAt; i < StartAt + PageSize; i++)
{
if (Members.Count <= i)
{
break;
}
StringBuilder sbHTMLItem = new StringBuilder();
object[] parameters = new object[14];
parameters[0] = Members[i].WebMemberID;
parameters[1] = ParallelServer.Get() + Members[i].DefaultPhoto.FullyQualifiedURL;
parameters[2] = Members[i].NickName;
parameters[3] = Members[i].FirstName;
parameters[4] = Members[i].LastName;
parameters[5] = Members[i].ISOCountry;
parameters[6] = (Gender)Members[i].Gender;
parameters[7] = TimeDistance.GetAgeYears(Members[i].DOB);
parameters[8] = Members[i].CreatedDT.ToString("dd MMMM yyyy");
parameters[9] = UserStatus.IsUserOnline(Members[i].WebMemberID) ? "<img class=\"online-offline\" src=\"/images/online.gif\" alt=\"Online\" /> Online now" : "<img class=\"online-offline\" src=\"/images/offline.gif\" alt=\"Offline\" /> Offline";
//parameters[10] = (true) ? @"<a href='javascript:unfriendMember(""" + Members[i].WebMemberID + @""">'<img src='images/unfriend.gif' /></a>" : string.Empty;
//parameters[10] = (IsFriend) ? @"<p><a href='javascript:unfriendMember(""" + Members[i].WebMemberID + @""")' class='unfriend' >Unfriend</a></p>" : string.Empty;
parameters[10] = @"javascript:unfriendMember(""" + Members[i].WebMemberID + @""")";
parameters[11] = @"/Inbox.aspx?s=" + Members[i].WebMemberID + @"&r=" + Server.UrlEncode(Request.Url.PathAndQuery);
parameters[12] = @"/Inbox.aspx?f=" + Members[i].WebMemberID + @"&r=" + Server.UrlEncode(Request.Url.PathAndQuery);
string HTMLItem = @"<div class='friend_list clearfix' style='background:transparent;' id='divFriend{0}'>
<div class='profile_pic'>
<a href='/users/{2}'><img src='{1}' alt='{3}' /></a>
</div>
<div class='friend_data'>
<p class='friend_name'><a href='/users/{2}'>{3} {4}</a></p>
<div class='col1'>
<strong>Location:</strong> {5}<br />
<strong>Gender:</strong> {6}<br />
<strong>Age:</strong> {7}<br />
{9}</div>
<div class='col2'><strong>Nickname:</strong> <a href='/users/{2}'>{2}</a><br />
<strong>Joined:</strong> {8}
</div>
<p class='notes'>
</p>
</div>
<ul class='friend_actions'>
<li><a href='{11}' onmouseover='return true;' class='send_message'>Send Message</a></li>
<li><a href='{12}' onmouseover='return true;' class='forward'>Forward to a friend</a></li>
";
if (member != null)
{
if (member.MemberID == ViewingMember.MemberID)
{
HTMLItem += @"<li><a href='{10}' onmouseover='return true;' class='block'>Unfriend</a></li>";
}
}
HTMLItem += @"</ul></div>";
//<li><a href='javascript:parent.openChatWindowEx(""{0}"");' onmouseover='return true;' class='send_instant'>Send Instant Message</a></li>
//<p class='notes'>You and Lawrence made friend {}. <br />
sbHTMLItem.AppendFormat(HTMLItem, parameters);
sbHTMLList.Append(sbHTMLItem.ToString());
}
//<li><a href='#' onmouseover='return true;' class='send_instant'>Send Instant Message</a></li>
Pager pager = new Pager("/users/"+ViewingMember.NickName+"/friends/", "", Page, Members.Count);
pager.PageSize = 10;
DefaultHTMLPager = (Members.Count>0) ? "<span>"+pager.ToString()+"</span>" : string.Empty;
DefaultHTMLLister = (Members.Count>0) ? sbHTMLList.ToString() : "<p>Member currently has no Friends.</p>";
}
示例5: GenerateLister
public TabContents GenerateLister(List<Photo> Photos, int TabType, int Page)
{
StringBuilder sbHTMLList = new StringBuilder();
int PageSize = 54;
int StartAt = (Page * PageSize) - PageSize;
for (int i = StartAt; i < StartAt + PageSize; i++)
{
if (Photos.Count <= i)
{
break;
}
StringBuilder sbHTML = new StringBuilder();
object[] parameters = new object[15];
parameters[0] = ParallelServer.Get(Photos[i].ThumbnailResourceFile.FullyQualifiedURL) + Photos[i].ThumbnailResourceFile.FullyQualifiedURL;
parameters[1] = TimeDistance.TimeAgo(Photos[i].CreatedDT);
parameters[2] = Photos[i].WebPhotoID;
parameters[3] = Photos[i].NumberOfViews;
parameters[4] = Photos[i].NumberOfComments;
parameters[5] = Photos[i].TotalVoteScore;
parameters[6] = Photos[i].NumberOfComments;
parameters[7] = Photos[i].Member.NickName;
parameters[8] = Photos[i].Member.WebMemberID;
parameters[9] = Photos[i].Title;
parameters[10] = Photos[i].Caption;
parameters[11] = Photos[i].WebPhotoCollectionID;
sbHTML.AppendFormat(@"<li style='width:131px;text-align:center;padding:0 0 0px'>
<div class='vid_thumb' style='text-align:center;width:131px;overflow:hidden;'>
<a href='/gallery/?g={11}&m={8}'><img src='{0}' height='91' alt='thumb' /></a></div>
<a href='/users/{7}'>{7}</a>
</li>", parameters);
// sbHTML.AppendFormat(@"<li style='width:115px;text-align:center;padding:0 0 0px'>
// <div class='vid_thumb' style='text-align:center;width:131px;overflow:hidden;'>
// <a href='/gallery/?g={11}&m={8}'><img src='{0}' height='91' alt='thumb' /></a></div>
// <a href='/users/{7}'>{7}</a>
// </li>", parameters);
// sbHTML.AppendFormat(@"<li>
// <div class='vid_thumb' style='text-align:center;width:131px;overflow:hidden;'> <a href='view.aspx?p={2}'><img src='{0}' height='91' alt='thumb' /></a></div>
// <div class='vid_info'>
//
// <h3><a href='view.aspx?p={2}'>{9}</a></h3>
// <p class='timestamp'>{1}</p>
// <div class='vote vote_condensed'><span class='vote_count'>{5}</span></div>
// <p class='metadata'>Views: {3}<br />
// Comments: <a href='#'>{4}</a><br />
// by: <a href='view.aspx?m={8}'>{7}</a></p>
//
// </div>
// </li>", parameters);
sbHTMLList.Append(sbHTML.ToString());
}
//StringBuilder sbPager = new StringBuilder();
//object[] PagerParameters = new object[4];
//PagerParameters[0] = TabType;
//PagerParameters[1] = Page - 1;
//PagerParameters[2] = Page + 1;
//PagerParameters[3] = TabType;
//if (Page != 1)
// sbPager.AppendFormat("<a href='?t={3}&p={1}' class='previous'>Previous</a>", PagerParameters);
//if (Photos.Count >= (Page * PageSize))
// sbPager.AppendFormat("<a href='?t={3}&p={2}' class='next'>Next</a>", PagerParameters);
//// create the TabContents to return
//TabContents tabContents = new TabContents();
//tabContents.TabType = TabType;
//tabContents.HTML = sbHTMLList.ToString();
//tabContents.PagerHTML = sbPager.ToString();
Pager pager = new Pager("/photos/", string.Empty, Page, 5000);
pager.PageSize = PageSize;
// create the TabContents to return
TabContents tabContents = new TabContents();
// tabContents.TabType = TabType;
tabContents.HTML = sbHTMLList.ToString();
tabContents.PagerHTML = pager.ToString();
return tabContents;
}
示例6: Bind
public void Bind(int Page)
{
int NumberOfVideos = Video.GetVideosCountByMemberID(member.MemberID);
videos = Video.GetVideosByMemberIDWithJoinPager(member.MemberID, Page);
if (videos.Count == 0)
{
NoVideosMessage = "<p>You have no videos in your account. To upload please use the big blue button to the right!";
NoVideos = true;
}
else
{
NoVideos = false;
}
VideoRepeater.DataSource = videos;
VideoRepeater.DataBind();
Pager pager = new Pager("/myvideos/", Page, NumberOfVideos);
pager.PageSize = 10;
PagerHTML = pager.ToString();
}
示例7: GenerateLister
public TabContents GenerateLister(List<Video> Videos, string pageURL, string miscParams, int Page, int maxItems, int PageSize)
{
StringBuilder sbHTMLList = new StringBuilder();
if (Videos.Count > 0)
{
for (int i = 0; i < Videos.Count; i++)
{
if (Videos.Count <= i)
{
break;
}
StringBuilder sbHTMLItem = new StringBuilder();
object[] parameters = new object[14];
parameters[0] = ParallelServer.Get(Videos[i].ThumbnailResourceFile.FullyQualifiedURL) + Videos[i].ThumbnailResourceFile.FullyQualifiedURL;
parameters[1] = Videos[i].TimeAgo;
parameters[2] = Videos[i].VeryShortTitle;
parameters[3] = Videos[i].VeryShortDescription;
parameters[4] = Videos[i].NumberOfViews;
parameters[5] = Videos[i].NumberOfComments;
parameters[6] = Videos[i].Member.NickName;
parameters[7] = Videos[i].Category;
parameters[8] = Videos[i].WebVideoID;
parameters[9] = Videos[i].Duration;
parameters[10] = Videos[i].TotalVoteScore;
parameters[11] = Videos[i].Member.WebMemberID;
parameters[12] = RegexPatterns.FormatStringForURL(Videos[i].Title);
parameters[13] = Videos[i].Title.Replace(@"""","'");
string HTMLItem = @"<li style='width:120px;text-align:center;padding:0px 0px 0px 0px'>
<div class='vid_thumb'> <a href='javascript:displayMiniVideo(""{8}"",""{13}"");'><img src='{0}' width='124' height='91' alt='{13}' /></a></div>
<a href='/users/{6}'>{6}</a></p>
</li>";
sbHTMLItem.AppendFormat(HTMLItem, parameters);
sbHTMLList.Append(sbHTMLItem.ToString());
}
}
else
{
//sbHTMLList.AppendFormat("There is no result{0} page {1}",Videos.Count,page);
sbHTMLList.AppendFormat("Your <strong>video</strong> search with keyword <strong>{0}</strong> did not match any video.", keyword);
}
Pager pager = new Pager("/video/", miscParams, page, maxItems);
pager.PageSize = 20;
// create the TabContents to return
TabContents tabContents = new TabContents();
// tabContents.TabType = TabType;
tabContents.HTML = sbHTMLList.ToString();
tabContents.PagerHTML = pager.ToString();
return tabContents;
}
示例8: GenerateProximityLister
public TabContents GenerateProximityLister(List<Member> Members, int TabType, int Page, bool IsFriend, MemberOrderBy OrderBy)
{
Members = SortMembers(Members, OrderBy);
StringBuilder sbHTMLList = new StringBuilder();
int PageSize = 10;
int StartAt = (Page * PageSize) - PageSize;
for (int i = StartAt; i < StartAt + PageSize; i++)
{
if (Members.Count <= i)
{
break;
}
StringBuilder sbHTMLItem = new StringBuilder();
object[] parameters = new object[14];
parameters[0] = Members[i].WebMemberID;
parameters[1] = ParallelServer.Get() + Members[i].DefaultPhoto.FullyQualifiedURL;
parameters[2] = Members[i].NickName;
parameters[3] = Members[i].FirstName;
parameters[4] = Members[i].LastName;
parameters[5] = Members[i].ISOCountry;
parameters[6] = (Gender)Members[i].Gender;
parameters[7] = TimeDistance.GetAgeYears(Members[i].DOB);
parameters[8] = Members[i].CreatedDT.ToString("dd MMMM yyyy");
parameters[9] = UserStatus.IsUserOnline(Members[i].WebMemberID) ? "<img class=\"online-offline\" src=\"/images/online.gif\" alt=\"Online\" /> Online now" : "<img class=\"online-offline\" src=\"/images/offline.gif\" alt=\"Offline\" /> Offline";
//parameters[10] = (true) ? @"<a href='javascript:unfriendMember(""" + Members[i].WebMemberID + @""">'<img src='images/unfriend.gif' /></a>" : string.Empty;
//parameters[10] = (IsFriend) ? @"<p><a href='javascript:unfriendMember(""" + Members[i].WebMemberID + @""")' class='unfriend' >Unfriend</a></p>" : string.Empty;
parameters[10] = @"<p><a href='javascript:unfriendMember(""" + Members[i].WebMemberID + @""")' class='unfriend'>UnFriend</a>";
parameters[11] = @"/Inbox.aspx?s=" + Members[i].WebMemberID + @"&r=" + Server.UrlEncode(Request.Url.PathAndQuery);
parameters[12] = @"/Inbox.aspx?f=" + Members[i].WebMemberID + @"&r=" + Server.UrlEncode(Request.Url.PathAndQuery);
parameters[13] = Members[i].DefaultPhoto.CreatedDT.ToString("dd MMMM yyyy hh:mm tt");
string HTMLItem = @"<div class='friend_list clearfix' id='divFriend{0}'>
<div class='profile_pic'>
<a href='/users/{2}'><img src='{1}' alt='pic' /></a>
</div>
<div class='friend_data'>
<p class='friend_name'><a href='/users/{2}'>{3} {4}</a></p>
<div class='col1'>
<strong>Location:</strong> {5}<br />
<strong>Gender:</strong> {6}<br />
<strong>Age:</strong> {7}</div>
<div class='col2'><strong>Nickname:</strong> <a href='/users/{2}'>{2}</a><br />
<strong>Joined:</strong> {8}<br />
<strong>Active:</strong> {9}
</div>
<p class='notes'></p>
</div>
<ul class='friend_actions'>
<li><a href='{11}' onmouseover='return true;' class='send_message'>Send Message</a></li>
<li><a href='{12}' onmouseover='return true;' class='forward'>Forward to a friend</a></li>
</ul></div>";
//<li><a href='javascript:parent.openChatWindowEx(""{0}"");' onmouseover='return true;' class='send_instant'>Send Instant Message</a></li>
//<p class='notes'>You and Lawrence made friend {}. <br />
// <p class='notes'>
//Tagged: {10}
// </p>
sbHTMLItem.AppendFormat(HTMLItem, parameters);
sbHTMLList.Append(sbHTMLItem.ToString());
}
//<li><a href='#' onmouseover='return true;' class='send_instant'>Send Instant Message</a></li>
Pager pager = new Pager("/friends/", "to=" + TabType, Page, Members.Count);
pager.PageSize = 10;
DefaultHTMLPager = pager.ToString();
//// create the TabContents to return
TabContents tabContents = new TabContents();
//tabContents.TabType = TabType;
tabContents.HTML = sbHTMLList.ToString();
//tabContents.PagerHTML = sbPager.ToString();
return tabContents;
}
示例9: GenerateSearchLister
public TabContents GenerateSearchLister(List<Member> Members,string pageURL,string miscParams, int Page)
{
//MemberOrderBy OrderBY = SetCurrentTab();
//Members = SortMembers(Members, OrderBy);
StringBuilder sbHTMLList = new StringBuilder();
int PageSize = 20;
int StartAt = (Page * PageSize) - PageSize;
bool isFriend = false;
for (int i = StartAt; i < StartAt + PageSize; i++)
{
if (Members.Count <= i)
{
break;
}
StringBuilder sbHTMLItem = new StringBuilder();
object[] parameters = new object[23];
parameters[0] = Members[i].WebMemberID;
parameters[1] = Next2Friends.Data.ParallelServer.Get() + Members[i].DefaultPhoto.FullyQualifiedURL;
parameters[2] = Members[i].NickName;
parameters[3] = Members[i].FirstName;
parameters[4] = Members[i].LastName;
parameters[5] = (Members[i].ISOCountry!="Unspecified") ? Members[i].ISOCountry : string.Empty; //+city
if (Members[i].AccountType == (int)AccountType.Personal)
{
//parameters[6] = (Gender)Members[i].Gender;
//parameters[7] = TimeDistance.GetAgeYears(Members[i].DOB);
//<strong>Gender:</strong> {6}<br />
//<strong>Age:</strong> {7}<br />
parameters[6] =string.Format("<strong>Gender:</strong> {0}<br />", (Gender)Members[i].Gender);
// if he user signed up from the web service then the year will be 1900
if (Members[i].DOB.Year == 1900)
{
parameters[7] = "<strong>Age:</strong> unspecified<br />";
}
else
{
parameters[7] = string.Format("<strong>Age:</strong> {0}<br />", TimeDistance.GetAgeYears(Members[i].DOB));
}
}
else if (Members[i].AccountType == (int)AccountType.Business)
{
parameters[6] = "";
parameters[7] = "";
}
parameters[8] = Members[i].CreatedDT.ToString("dd MMMM yyyy");
parameters[9] = UserStatus.IsUserOnline(Members[i].WebMemberID) ? "<img class=\"online-offline\" src=\"/images/online.gif\" alt=\"Online\" /> Online now" : "<img class=\"online-offline\" src=\"/images/offline.gif\" alt=\"Offline\" /> Offline";
// parameters[10] = (IsFriend) ? @"<a href='javascript:unfriendMember(""" + Members[i].WebMemberID + @""")'<img src='images/unfriend.gif' /></a>" : string.Empty;
//parameters[10] = (IsFriend) ? @"<p class='notes'><a href='#' class='addto_friends'>Add to Friends</a>" : "<a href='#' class='addto_friends added'>Already a Friend</a></p> ";
parameters[10] = "";//@"<p><a href='javascript:unfriendMember(""" + Members[i].WebMemberID + @""")' class='unfriend'>UnFriend</a></p>";
parameters[11] = @"Inbox.aspx?s=" + Members[i].WebMemberID + @"&r=" + Server.UrlEncode(Request.Url.PathAndQuery);
parameters[12] = @"Inbox.aspx?f=" + Members[i].WebMemberID + @"&r=" + Server.UrlEncode(Request.Url.PathAndQuery);
parameters[19] = Members[i].NickName;
parameters[20] = Members[i].ISOCode;
parameters[21] = Members[i].ISOCountry;
if (Members[i].MemberProfile[0].RelationshipStatus != -1 && Members[i].MemberProfile[0].RelationshipStatus != 0)
{
parameters[22] = "<strong>Status: </strong>" + GetRelationShipStatus(Members[i].MemberProfile[0].RelationshipStatus) + "<br />";
}
else
{
parameters[22] = "";
}
if (Members[i].MemberProfile[0].NumberOfPhotos > 0)
{
parameters[13] = "<strong>Photos :</strong><a href= \"/users/" + Members[i].NickName + "/photos\">" + Members[i].MemberProfile[0].NumberOfPhotos + "</a><br />";
}
else
{
parameters[13] = "";
}
if (Members[i].MemberProfile[0].NumberOfVideos > 0)
{
parameters[14] = "<strong>Videos :</strong><a href= \"/users/" + Members[i].NickName + "/videos\">" + Members[i].MemberProfile[0].NumberOfVideos + "</a><br />";
}
else
{
parameters[14] = "";
}
if (Members[i].MemberProfile[0].NumberOfViews > 0)
{
//.........这里部分代码省略.........