This Is Error
An exception of type 'System.NullReferenceException' occurred in Online.dll but was not handled in user code
Additional information: Object reference not set to an instance of an object.
My Code Is .. How to fixed that error?internal global::System.Data.SqlClient.SqlConnection Connection {
get {
if ((this._connection == null)) {
this.InitConnection();
}
return this._connection;
}
set {
this._connection = value;
if ((this.Adapter.InsertCommand != null)) {
this.Adapter.InsertCommand.Connection = value;
}
if ((this.Adapter.DeleteCommand != null)) {
this.Adapter.DeleteCommand.Connection = value;
}
if ((this.Adapter.UpdateCommand != null)) {
this.Adapter.UpdateCommand.Connection = value;
}
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
if ((this.CommandCollection[i] != null)) {
((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
}
}
}
}

Sivasankar GorantlaRank #5,536 · 296 reputationPosted Jun 19, 2017, 11:27 PM EDT
sommro30 reputationPosted Jun 17, 2017, 10:35 AM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Jun 17, 2017, 11:48 AM EDT
Rajkiran SwainRank #165 · 14.4K reputationPosted Jun 18, 2017, 12:25 AM EDT