Insertion, Reading from a mySQL DB in a Web Form

Insertion

Step 1

Now, Open Visual Studio 2015 Update 3, go to the File >> New >> Project or use the shortcut key "Ctrl+Shift +N".






Step 2
Here, select Visual C# >> Web >> ASP.NET Web Application. Finally, click "OK" button.





Step 3
Here, you can select the template for your ASP.NET Application. We are choosing "Empty" here. Now, click OK button. 




Step 4
Now, open the project and look for the Solution Explorer.

Here, open the default .aspx. If you want a Webform, you can add the page (Web Form). Add+New item (Ctrl+Shift+A).




Now, we can create a login page, using ASP.NET code. You need to follow the drag and drop method. Here, we already created the login page.



Step 5
         
Now, open the project. If you want a SQL Server database, you can add the page (SQL Server database). Add+New item (Ctrl+Shift+A).
Here, you can select Visual C# and choose SQL Server database. Afterwards, click "OK" button.


Here, open the new Window and click YES button. (Say Yes to Popup)


Now, add this to the database in our project.



Comments