We make a small registration form and save all the details along with encrypted data into the database.
Initial chamber
Step 1. Open Visual Studio 2010 and Create an Empty Website. Give a suitable name registration_demo.
Step 2. In Solution Explorer, you will get your empty website. Add a web form and SQL Database. Follow these steps.
For Web Form
registration_demo (Your Empty Website) - Right-click, Add New Item, then Web Form. Name it CheckBoxList_demo.aspx.
For SQL Server Database
registration_demo (Your Empty Website) - Right-click, Add New Item, then SQL Server Database. Add Database inside the App_Data_folder.
Database chamber
Step 3. In Server Explorer, click on your database Database.mdf - Tables, then Add New Table and make a table like this.
Table - tbl_data and don’t forget to make ID as IS Identity -- True
![Table]()
Design chamber
Step 4. Now make some designs for your application by going to registration_demo.aspx and trying the code like this.
registration_demo.aspx
Your design looks like this.
![Design]()
Code chamber
Step 5. Now it’s time for server-side coding so that our application starts working. Open registration_demo.aspx.cs file and code it like the following.
registration_demo.aspx.cs
Output chamber
![Output]()
Save table Data.
![Save table data]()