NullReferenceException was unhandled
Object reference not set to an instance of an object.
This is the error that I am having lot !!!![]()
I must sometimes put On error resume next to not see these errors. But it works without a problem.
It shows this code:
But I cant find anything wrong with it. I thought that that cell is empty when I try to write its value to label. But it is not empty. If it would empty it would write anything to that label with On error resume next. But it writes the value with on error resume next. How can I solve this problem?Code:lblAlisNo.Text = ADGW.CurrentRow.Cells(0).FormattedValue




Reply With Quote