In previous posts we have seen  connecting with sql server using ADO.NET, Simple C# program with ADO.NET .

In this post we will see a sample windows application with ADO.NET . I am designing the form as shown in the image below.
ado-net-sample-application-form

create a table in the database. Here we are using sql server.
The code in the code behind file is given below :

To have a look at output see the image below :

ado-net-sample-application-output

Leave a Reply

Your email address will not be published. Required fields are marked *