سلام
این ارور رو چطوری برطرف کنم؟؟ :wacko:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 35: myCommand.Fill(ds, " AtlasArticles")
Line 36: Dim source As DataView
Line 37: source = ds.Tables("AtlasArticles").DefaultView
Line 38: source.Sort = sortfield
Line 39: dgArticles.DataSource = source
Source File: c:\inetpub\wwwroot\Test\WebForm1.aspx.vb Line: 37
این ارور رو چطوری برطرف کنم؟؟ :wacko:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 35: myCommand.Fill(ds, " AtlasArticles")
Line 36: Dim source As DataView
Line 37: source = ds.Tables("AtlasArticles").DefaultView
Line 38: source.Sort = sortfield
Line 39: dgArticles.DataSource = source
Source File: c:\inetpub\wwwroot\Test\WebForm1.aspx.vb Line: 37