protected void Page_Load(object sender, EventArgs e) { AjaxPro.Utility.RegisterTypeForAjax(typeof(NSpotPage)); member = (Member)Session["Member"]; // set the default forwarding if the member is not logged in LoginUrl = @"signup.aspx?u=" + Request.Url.AbsoluteUri; SubscribeLink = LoginUrl; SendMessageLink = LoginUrl; BlockMemberLink = LoginUrl; AddToFriendsLink = LoginUrl; DefaultVoteUpLink = LoginUrl; DefaultVoteDownLink = LoginUrl; AddFavouritesLink = LoginUrl; string strWebNSpotID = Request.Params["n"]; // load the members photo string strMemberPhoto = Request.Params["np"]; if (strWebNSpotID != null) { ViewingNSpot = NSpot.GetNSpotByNSpotWebIDWithJoin(strWebNSpotID); PhotoURL = ViewingNSpot.PhotoResourceFile.FullyQualifiedURL; ProfileDefaultPageType = NSDefaultPageType.NSpot; DefaultNumberOfViews = (++ViewingNSpot.NumberOfViews).ToString(); ViewingNSpot.Save(); PermaLink = WebRoot + "nspot.aspx?m=" + strWebNSpotID; GenerateNSpotMemberLister(); } if (strMemberPhoto != null) { ResourceFile PhotoRes = new ResourceFile(ViewingNSpot.PhotoResourceFileID); LoadLargeNSpotPhoto = true; LargePhotoURL = @"user/" + ViewingNSpot.Member.NickName + "/nslrge/" + PhotoRes.FileName; } if (member != null) { IsLoggedIn = true; if (ViewingNSpot.MemberID == member.MemberID) { IsMyPage = true; } } GeneratePageComments(); //CreateEmbeddedLinks(); }
protected void Page_Load(object sender, EventArgs e) { AjaxPro.Utility.RegisterTypeForAjax(typeof(NSpotPage)); member = (Member)Session["Member"]; // set the default forwarding if the member is not logged in LoginUrl = @"signup.aspx?u=" + Request.Url.AbsoluteUri; SubscribeLink = LoginUrl; SendMessageLink = LoginUrl; BlockMemberLink = LoginUrl; AddToFriendsLink = LoginUrl; DefaultVoteUpLink = LoginUrl; DefaultVoteDownLink = LoginUrl; AddFavouritesLink = LoginUrl; string strWebNSpotID = Request.Params["n"]; // load the members photo string strMemberPhoto = Request.Params["np"]; if (strWebNSpotID != null) { ViewingNSpot = NSpot.GetNSpotByNSpotWebIDWithJoin(strWebNSpotID); PhotoURL = ViewingNSpot.PhotoResourceFile.FullyQualifiedURL; ProfileDefaultPageType = NSDefaultPageType.NSpot; DefaultNumberOfViews = (++ViewingNSpot.NumberOfViews).ToString(); ViewingNSpot.Save(); PermaLink = WebRoot + "nspot.aspx?m=" + strWebNSpotID; GenerateNSpotMemberLister(); } if (strMemberPhoto != null) { ResourceFile PhotoRes = new ResourceFile(ViewingNSpot.PhotoResourceFileID); LoadLargeNSpotPhoto = true; LargePhotoURL = @"user/" + ViewingNSpot.Member.NickName + "/nslrge/" + PhotoRes.FileName; } if (member != null) { IsLoggedIn = true; if (ViewingNSpot.MemberID == member.MemberID) { IsMyPage = true; } } GeneratePageComments(); //CreateEmbeddedLinks(); }