V
VB Programmer
I have a FormView control, "fvDeposits", which has 1 databound label in it,
called "MyTotal". If the label is blank/no data this line of code gets the
error "Run-time exception thrown : System.ArgumentNullException - Object
cannot be null"
CType(CType(Me.fvDeposits.FindControl("MyTotal"), Label).Text, Decimal)
Any ideas how I can get around this?
Thanks!
called "MyTotal". If the label is blank/no data this line of code gets the
error "Run-time exception thrown : System.ArgumentNullException - Object
cannot be null"
CType(CType(Me.fvDeposits.FindControl("MyTotal"), Label).Text, Decimal)
Any ideas how I can get around this?
Thanks!