First, why are you calling the Convert.ToDouble when you are getting it as a double? It's not needed.
Second, if it says there is no data, there is no data. Put a breakpoint on the line and inspect the values and see if it is what you wanted.
Momerath
Nearly a Senior Poster
3,386 posts since Aug 2010
Reputation Points: 1,232
Solved Threads: 558
There is no code to create a breakpoint. In the VS IDE click in the left margin beside the line you want to check (a red dot will appear) and then start your app in debug mode. The code will run until it reaches that point and then open up the various debug windows. The vaules of your variables will be shown.
Check the values in the dataReader.
hericles
Practically a Posting Shark
823 posts since Nov 2007
Reputation Points: 136
Solved Threads: 167
simply use try and catch
i think u get db null exception. if u got this error use isnull() method and replace that null value to double you can easily get what you want
mani-hellboy
Junior Poster in Training
69 posts since Feb 2012
Reputation Points: 0
Solved Threads: 7