Click here to Skip to main content
15,920,670 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir now i m doing my connectivity and now i want to connect my data base with sqlserver with my registration through which a user enter the data and it will inserted to my data base in sqlserver.
and is there is any neeed to add class file for connection
Posted
Comments
Shahin Khorshidnia 4-Mar-12 5:55am    
whould you explain more about the problem?

1 solution

I think you need to learn ADO.net[^] concepts to perform CRUD operations. You can read this article as well:

Using ADO.NET for beginners[^]

And yes you can use a separate class file for connection, but I would prefer to use Web.config file to write the connection strings as it is in XML form and can be edited after published code.

hope it helps :)
 
Share this answer
 
Comments
thatraja 4-Mar-12 11:15am    
5!

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