hi to all
i create a dataset and a TableAdapter like this:
i will pass a parameter at runtime to myparam
I written the following code:
Code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim cityTA As DataSet1TableAdapters.cityTableAdapter
Dim cityDT As DataSet1.cityDataTable
cityTA.FillBy(cityDT, 2)
End Sub
But when run, This error is displayed:
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.
please help me To solve this problem