string Item = Convert.ToString(drr["Item_Code"]);
This Row is not present in the Datatable.So its throw an error.Instead of thrown an erroe i want the (Item ) value is NULL..
Is this Possible without using If Conditon
rhino000 says: Same error occur Column 'Item_Code' does not belong to table Table1.
Same error occur
Column
'Item_Code'
does not belong to table Table1.
that means you dont have the column with name Item_Code in your database table.so it will throw error everytime you are trying to access.
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.