if (OrderLinesDs.Tables[0].Rows[0]["Billing_FAX"]!=null)
{
txtFax.Text="";
}
else
{
txtFax.Text=(string)OrderLinesDs.Tables[0].Rows[0]["Billing_FAX"];
}
>>above code checking both the condition.what is the best solutions on this
Help help
Printable View
if (OrderLinesDs.Tables[0].Rows[0]["Billing_FAX"]!=null)
{
txtFax.Text="";
}
else
{
txtFax.Text=(string)OrderLinesDs.Tables[0].Rows[0]["Billing_FAX"];
}
>>above code checking both the condition.what is the best solutions on this
Help help
Here's one way:
Code:if (Convert.IsDBNull(reader["FirstName"])) {
Response.Write("No soup for you!");
}