Hi,
Please use following, if dt.Rows[0]["Quno"].ToString(); contain null value then it will automatically handle and it will not gives error
if(dt != null && dt.Rows.Count > 0)
{
Int32 B = Convert.ToInt32(dt.Rows[0]["Quno"].ToString());
}
Please do let me know, if you have any doubt.
Please provide "
Vote" if this would be helpful, and make "
Accept Answer" if this would be correct answer.:rose:
Thanks,
Imdadhusen