Last post Apr 16, 2009 01:28 PM by redwoodbev
Apr 14, 2009 03:56 AM|redwoodbev|LINK
Hi. A lot of ads on my site are entered with 0.00 for the price. I'd like to find a way for ads entered with 0.00 for price to show a text message in place of the price field. So if someone doesn't want to post a price on their ad, instead of Price: 0.00
the ad would show with Price: Call, or something like that. I found a couple of references to App_Code/Web/OutputFormatting.vb as a possibility but I can't seem to figure it out. Has anyone done something like this? Thanks.
classifieds price display
Apr 14, 2009 11:20 PM|darkknight187|LINK
Enter 0 in one of your test ads and view the database.
I think it would enter 0.0000
If it does try this.
If ad.Price = "0.0000" Then
PriceLabel.Text = "Call"
PriceLabel.Text = ad.Price
Apr 16, 2009 01:28 PM|redwoodbev|LINK
Thank you. That worked perfectly.