![]() |
|
|
|||||||
![]() |
ASP Net - Error with a code line. Urgent. Thank You. |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Hello,
i am inserting form values into a database and i am getting problems in this line: <Parameter Name="@Local02Metro" Value='<%# IIf(local02Metro.Checked <> "", local02Metro.Checked, "") %>' Type="WChar" /> The error i get is this: System.InvalidCastException: Cast from string "" to type 'Boolean' is not valid. ---> System.FormatException: Input string was not in a correct format. at Microsoft.VisualBasic.CompilerServices.DoubleType. Parse(String Value, NumberFormatInfo NumberFormat) at Microsoft.VisualBasic.CompilerServices.BooleanType .FromString(String Value) Can you tell me what i need to change in my line? Basicly i am getting the value of a check box. I am working in ASP.net / VB. Thank You, Miguel Miguel Dias Moura |
|
|
|
|
#2 |
|
Posts: n/a
|
local02Metro.Checked will return a 1 or a 0
it won't compare to "" try changing code to local02Metro.Checked =0 TJS |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Please Help Its urgent C++ Code required | ch_mshahid | General Help Related Topics | 1 | 07-31-2008 02:35 PM |
| plz post the vhdl code for dma controller 8257 with description(very urgent.....plz) | vijaygubba | General Help Related Topics | 0 | 02-04-2008 02:31 PM |
| SONY DVD RW DW-G120A SOMETIMES FAILS...... | atlantic965 | DVD Video | 0 | 06-18-2006 10:36 PM |
| problems backing up dvds | Lawrence Traub | DVD Video | 11 | 09-27-2005 07:34 PM |
| Burn process failed - help! Log file posted for help troubleshooting | Michael Mason | DVD Video | 1 | 08-16-2004 09:24 PM |