Alsalamu Alaikom.
Sorry for writtung in English.
When I execute a stored procedure that returns a single value using a TableAdapter, I always get error message "Object reference not set to an instance of an object"
I followed all the steps in this MSDN page:
but the problem still unsolved.
here are my simple stored procedure:
AS
RETURN 4
create PROCEDURE dbo.StoredProcedure1
and here are the simple code in my asp.net webpage that should display the number "4":
{
DataSet1TableAdapters.QueriesTableAdapter TA
= new DataSet1TableAdapters.QueriesTableAdapter();
int i = ( int) TA.StoredProcedure1();
Response.Write(i.ToString());
}
protected void Button1_Click(object sender, EventArgs e)
you'll find attached a very simple project that demonstrate this problem.
so, please could any one help me?
