Click here to Skip to main content
15,919,121 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionjavascript to validate radiobutton list Pin
dukuria2-Oct-07 4:52
dukuria2-Oct-07 4:52 
AnswerRe: javascript to validate radiobutton list Pin
Sandeep Akhare2-Oct-07 6:55
Sandeep Akhare2-Oct-07 6:55 
QuestionInstansiating a List(of Double) to nothing or no value Pin
Md Arif2-Oct-07 3:55
Md Arif2-Oct-07 3:55 
AnswerRe: Instansiating a List(of Double) to nothing or no value Pin
kubben2-Oct-07 5:24
kubben2-Oct-07 5:24 
GeneralRe: Instansiating a List(of Double) to nothing or no value Pin
Md Arif2-Oct-07 5:39
Md Arif2-Oct-07 5:39 
GeneralRe: Instansiating a List(of Double) to nothing or no value Pin
kubben2-Oct-07 6:26
kubben2-Oct-07 6:26 
GeneralRe: Instansiating a List(of Double) to nothing or no value Pin
Md Arif2-Oct-07 8:08
Md Arif2-Oct-07 8:08 
AnswerRe: Instansiating a List(of Double) to nothing or no value Pin
Guffa2-Oct-07 7:00
Guffa2-Oct-07 7:00 
You should use Option Strict On, then the compiler would tell you what the problem is. Actually, that should be part of the company standard, rather than restricting the classes to use.

Compiling the line
lst.add(arrlst(i))
with Option Strict On will give you the error message that implicit conversion from Object to Double is not allowed. With Option Strict Off, the compiler will turn the line into:
lst.add(Convert.ToDouble(arrlst(i)))
which explains why it turns your null value (Nothing) into a zero. Calling Convert.ToDouble with a null reference does actually return zero.

---
single minded; short sighted; long gone;

GeneralRe: Instansiating a List(of Double) to nothing or no value Pin
Md Arif2-Oct-07 7:30
Md Arif2-Oct-07 7:30 
QuestionHelp with UpdatePanel... Pin
Dio222-Oct-07 2:38
Dio222-Oct-07 2:38 
AnswerRe: Help with UpdatePanel... Pin
kubben2-Oct-07 3:25
kubben2-Oct-07 3:25 
GeneralRe: Help with UpdatePanel... Pin
Dio222-Oct-07 3:37
Dio222-Oct-07 3:37 
GeneralRe: Help with UpdatePanel... Pin
kubben2-Oct-07 3:45
kubben2-Oct-07 3:45 
GeneralRe: Help with UpdatePanel... Pin
Dio222-Oct-07 4:44
Dio222-Oct-07 4:44 
GeneralRe: Help with UpdatePanel... Pin
kubben2-Oct-07 5:22
kubben2-Oct-07 5:22 
Questionhow can I access an iframe from an aspx form Pin
Big Ralph2-Oct-07 1:53
Big Ralph2-Oct-07 1:53 
AnswerRe: how can I access an iframe from an aspx form Pin
N a v a n e e t h2-Oct-07 2:16
N a v a n e e t h2-Oct-07 2:16 
QuestionButtonClick eventhandler for dynamically loaded UserControl fails to catch event. Pin
Larantz2-Oct-07 1:32
Larantz2-Oct-07 1:32 
AnswerRe: ButtonClick eventhandler for dynamically loaded UserControl fails to catch event. Pin
DanB19832-Oct-07 7:42
DanB19832-Oct-07 7:42 
Questionmonth integer into month name Pin
Sonia Gupta2-Oct-07 1:30
Sonia Gupta2-Oct-07 1:30 
AnswerRe: month integer into month name Pin
pmarfleet2-Oct-07 1:41
pmarfleet2-Oct-07 1:41 
GeneralRe: month integer into month name Pin
Sonia Gupta2-Oct-07 1:49
Sonia Gupta2-Oct-07 1:49 
QuestionError in using two Required Field Validator Pin
Dhyanga2-Oct-07 1:09
Dhyanga2-Oct-07 1:09 
AnswerRe: Error in using two Required Field Validator Pin
pmarfleet2-Oct-07 1:36
pmarfleet2-Oct-07 1:36 
GeneralRe: Error in using two Required Field Validator Pin
Dhyanga2-Oct-07 19:46
Dhyanga2-Oct-07 19:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.