public string ImageUrl(COM.Enum.ImageTypes ImageType, string PhotoName, int PhotoSize) { if (PhotoName.IndexOf("http://profile.ak.fbcdn.net") != -1) { return(PhotoName); } else { return("~/Image.ashx?t=" + ((int)ImageType).ToString() + "&p=" + COM.Util.genPhotoNameOfSize(PhotoName, PhotoSize) + "&sz=" + PhotoSize.ToString()); } }
public string ImageUrl(COM.Enum.ImageTypes ImageType, string PhotoName, COM.Enum.PhotoSizes PhotoSize) { return(ImageUrl(ImageType, PhotoName, (int)PhotoSize)); }