Click here to Skip to main content
15,914,074 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

i am using a template in asp.net application so in that template it contains login also so when i take a login button when i clicked on that it directs to source part i want to interact with that database of sql server so how i could provide the Using System.Data.SqlClient namespace in source part it does not identified so please give me a suggestion
Posted

It sounds like you have to add a reference to System.Data .NET assembly. You can do this by right-clicking on the project in your solution explorer and selecting "Add Reference". Then select the .NET tab in the dialog that pops up and select the System.Data assembly in the list. Your file should now recognize the System.Data.SqlClient namespace.

I would suggest, however, that your web application project is not the place where you should be interacting directly with a database as you would be combining business and ui logic in the same classes.
 
Share this answer
 
v2
hi i am using template in asp.net application in that i take login button when i double click on that it redirect to source part of an application how can u provide the using.System.Data.SqlClient namespace in source code of an that template it does not recognize the namespace in source part

according to u r r solution i have add a reference to System.Data .NET assembly. i can do this by right-clicking on the project in your solution explorer and selecting "Add Reference". Then select the .NET tab in the dialog that pops up and select the System.Data assembly in the list.then after my file should not recognize the System.Data.SqlClient namespace.


Give mr u r solution
 
Share this answer
 

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