Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The value "" cannot be converted to a number

Status
Not open for further replies.

krichard

Technical User
Dec 5, 2001
41
US
I have a form where you can click on a race name and go to a page and rate it, with 4 slider bars...

you can go here to see it... if u click on rate us... u can see my prob... this particular race has not been rated, and it should have 5 grey stars, but for some reason the 4 stars keeps showing up... but thats not even the big problem...

If the race has already been rated... then i can submit arating... but if it hasn't been rated i get..

Error Occurred While Processing Request
The value "" cannot be converted to a number

The error occurred in D:\webserver\mtbmind.com\ line 54

52 : (
53 : #getRaceID.RaceID#,
54 : '<img src=&quot;Images/#Round(getRaceAVGrating.AVGrating)#Stars.bmp&quot;>'

Also... if there is a rating... I can submit a rating as long as i keep the slider bars where they are or move tehm to a higher value...i have the defaulted to 3 and its 1 to 5.. so if i don't touch the slider bars and submit the rating with all 3's it works... and if i move the values higher it submits, but when i move the slider bar to a value lower than the default, i get the same error as above...???

Any ideas?
 
First of all you should use <img src=&quot;Images/#Round(AVGrating)#Stars.bmp&quot;> instead of <img src=&quot;Images/#Round(getRaceAVGrating.AVGrating)#Stars.bmp&quot;>

You may only place form., url. and some other values at front of a variable.

Secondly it could be that the value for getRaceAVGrating.AVGrating isn't posted to your second page, display the values and check that they aren't blank <cfoutput>|#getRaceAVGrating.AVGrating#|</cfoutput>.


Charl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top