You are on page 1of 3

Part 4: Create your own register page.

1. Open your “UserInfoController.cs” page and add a new action named as registerUser.

2. Then, right click on the action and add a new Razor View named as “registerUser” in folder “UserInfo”.
3. Now, go to the solution explorer and right click on the Models folder. Add a new class named “register” in
the Models folder.

4. Modify the register.cs class by following the below code.


5. Modify the registerUser.cshtml with the below code:

6. Now, open your “UserInfoController.cs” page and add another registerUser() action with user parameter.

7. Now, restart the program and try the new registration page that you created.

You might also like