M
Mark
Hi, If I have a DataView containing some items and what I want to do is
restore a textbox with an item in one of the rows.
If the item in the datarow is null then obviously I get an error when I try
to bind the item to the textbox
e.g.
uiDelivery.Text = view[0].Row["DeliveryAddress"].ToString();
My question is, what is the best way to test for a null value in C#??
I have seen everything from try catch statements to !=String.Empty() and
==null
Thanks in advance
Mark
restore a textbox with an item in one of the rows.
If the item in the datarow is null then obviously I get an error when I try
to bind the item to the textbox
e.g.
uiDelivery.Text = view[0].Row["DeliveryAddress"].ToString();
My question is, what is the best way to test for a null value in C#??
I have seen everything from try catch statements to !=String.Empty() and
==null
Thanks in advance
Mark