hi to all
i create a dataset and a TableAdapter like this:
Name:  57969487420559753491.gif
Views: 109
Size:  9.9 KB

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.
Name:  04918479016197320904.gif
Views: 100
Size:  10.1 KB
please help me To solve this problem