Last post Nov 29, 2006 01:10 PM by tonsai
Nov 13, 2006 09:26 AM|tonsai|LINK
Does Anyone know how to change the default Showad.aspx page so that it loads with the first large photo loaded/displayed rather than having to click on a thumbnail!?
Nov 14, 2006 02:36 PM|mattbug|LINK
Ad this line to the AdDetails_ItemDataBound event handler (inside the first If statement):
Nov 14, 2006 02:43 PM|mattbug|LINK
Nov 14, 2006 03:04 PM|mattbug|LINK
Replacing my original line of code with the following seems to fix the problem. However, I am new to exception handling and this seems like very ugly code. If someone knows of a more elegant solution, please post one.
Nov 14, 2006 10:57 PM|paggy4u|LINK
Hello Mattbug, I have a suggestion, i think we should keep a default photo ready.
That is .... the photograph shows a line " Oops! No photograph is available at the moment "
This can be shown as an image, if there is no photograph available in the advt.
This would look better also.
What do you think, you can now code based on this in mind.
Hope this helps
Nov 15, 2006 09:48 AM|Annddrew|LINK
What is the value of ad.PreviewImageId when the ad has no picture ? If it is 0 then you don't need to use the Try-Catch statement. You just write the code:
Dim photoId As Integer
photoId = ad.PreviewImageId
If Not (photoId = 0) Then
Nov 29, 2006 01:10 PM|tonsai|LINK
This works great but if you then click on an enlarged picture (not a thumbnail) it just reloads the same picture. When you click on an enlarged picture it should cycle through to the next picture.