Assalamualaykum Wr Br…Today we build simple Web Application which demonstrates insertion of data from UI to data table without using Connection, Command class but using LINQ(Language Integrated Query).
Lets quick start our building by designing the Form as shown below
Associated HTML code is shown as:
Now Drag & Drop the dbml file which creates the DataContext Class with various methods and properties. It also creates class as similar to our table which is shown below:
Now the Button_Click event code is shown below:
The above code generates the following output as shown below:
Thats all for the Day!!!…Happy Coding…Jazakallah Khair
Which generates the following output as shown below: