Click here to Skip to main content
15,901,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello friends,

here im going to make a connection to my backend with html controls in visual studio , so i need help ,please suggest me how to connect in html page . thanking you
Posted
Updated 25-Nov-13 19:11pm
v2

1 solution

You cannot connect to Database with html controls.

You have to use Server-Side Controls, else add runat = "server" property to html controls.

For example- On Server side Button Click Event, you can create a SQL Connection by the help of ADO.NET and connect to Database.

Refer- Using ADO.NET for beginners[^].
 
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