Click here to Skip to main content
15,889,335 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I find this article on
DALC4NET: A Generic Data Access Layer for .NET[^]

i want to use this code in Project Library...which i create a UserControl can directly access to database..
while i creat WindowsApplication Project and use the UserControl. it's show An error "Object Reference Not set to instance and Object" .. Can Anybody help me please..
Posted
Comments
Shweta N Mishra 3-Nov-14 7:02am    
How you are accessing this control, Put your code here.

1 solution

Please use the forum at the end of the article, so the author can help you.
 
Share this answer
 
Comments
pravinkgarg 12-Mar-15 5:09am    
i am getting object reference error on giving below command:

DALC4NET.DBHelper d = new DBHelper(strCon, "System.Data.SqlClient");

could I know the reason for it
Richard MacCutchan 12-Mar-15 5:27am    
Yes you have an object that has not been initialised. Your debugger will show you which one it is.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900