for (int i = 0; i < dt.Rows.Count; i++) ;
if (dt.Rows[i]["productFile"].ToString() == "")
red part [ i ] is showing error
the name i does not exist in the current context
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Midhun TpRank #388 · 6.5K reputationPosted Sep 20, 2016, 12:37 AM EDT
Tejas TrivediRank #1,247 · 1.4K reputationPosted Sep 20, 2016, 12:36 AM EDT
Jisny AvRank #4,868 · 321 reputationPosted Sep 20, 2016, 1:00 AM EDT
Aseem Bhardwaj95 reputationPosted Sep 20, 2016, 1:05 AM EDT
Midhun TpRank #388 · 6.5K reputationPosted Sep 20, 2016, 1:08 AM EDT
Aseem Bhardwaj95 reputationPosted Sep 20, 2016, 1:13 AM EDT
Aseem Bhardwaj95 reputationPosted Sep 20, 2016, 3:07 AM EDT