DataRow d1 =ds1.Tables["User"].NewRow();
Here ds1 is the data se and, "User" is the table in context ...
The above written code is generating a Null Reference Exception during execution need help please....
Null Reference Exception generation in using database connectivity
Started by devasheesh, May 09 2010 03:39 AM
1 reply to this topic
#1
Posted 09 May 2010 - 03:39 AM
|
|
|
#2
Posted 09 May 2010 - 10:35 PM
well did u debug to see if Tables["User"] has any columns or Rows , If nothing is present then this is the cause of the Null Reference as ASP.NEt does not allow inserting new row into a Empty Table.


Sign In
Create Account

Back to top









