May 22, 2010 01:04 PM|OrcSlayer|LINK
OK, just a quick question on this. Been a busy week so I've only been able to apply snatches of time to this, but I assume you put the above line of code at the end of :
in PostAd.aspx.vb just before the final End Sub.
(The thinking being that if PayPal approves the payment you'll return to click the Finish Button and then you'll be automatically activated.)
I can't get it to work. Am I in the wrong playing field altogether? (I first looked under the Admin files but this seemed more logical). The code after I slip in the line looks like:
Dim adId As Integer = AdsDB.InsertAd(memberId, categoryId, title, description, url, price, location, numDays, AdLevel.Unspecified, AdStatus.Unspecified, adType)
Dim s As SiteSettings = SiteSettings.GetSharedSettings()
UploadImagesLink.Visible = s.AllowImageUploads
UploadImagesLink.NavigateUrl = "~/ManagePhotos.aspx?id=" + adId.ToString()
e.Cancel = True
The debugger error message is: "adID" is not declared. It may be inaccessabe due to its protection level.