J
Joe
I'm binding to a column in a TemplateField. In some cases the join I have
returns a null for an int field. I would like to specify a default value
somehow so I don't end up with a null exception.
I'm binding the CurrentRating of the Rating control so I'm doing
Convert.ToInt32(Eval('MyField')). This of course throws an exception if the
value being returned is null.
Is there another means of binging to that property where either a null
doesn't matter or I can replace it with a 0?
Thanks,
Joe
returns a null for an int field. I would like to specify a default value
somehow so I don't end up with a null exception.
I'm binding the CurrentRating of the Rating control so I'm doing
Convert.ToInt32(Eval('MyField')). This of course throws an exception if the
value being returned is null.
Is there another means of binging to that property where either a null
doesn't matter or I can replace it with a 0?
Thanks,
Joe