ASP.NET MVC Exercises – 45 Days
0% Completed
0 of 45 days completed
ASP.NET MVC Exercises
SOOPRO Pathshala provides day-wise ASP.NET MVC exercises to help students practise MVC concepts through practical programming tasks.
Practice Instructions:
Complete the practical tasks for each day. Mark a day complete after finishing its exercises. Your progress is saved in this browser.
ASP.NET MVC Day 1
Day 1 of 45
SOOPRO Pathshala Exercises
Write a program to create a method in mvc that return concatenation of first name and last name to browser.
Write a program to create a method in mvc that return vowels of your first name to browser.
Write a program to create a method in mvc that return consonants of your first name to browser.
Write a program to create a method that count total length of your first name and return to browser.
Mark Day 1 as Complete
Back to Day List ↑
ASP.NET MVC Day 2
Day 2 of 45
SOOPRO Pathshala Exercises
Write a program to return first four letters of your full name to web browser.
Write a program to return last three letters of your full name to web browser.
Write a program to return diff of length of first name and last name to web browser.
Write a program to return sum of any four digits numbers to web browser.
Mark Day 2 as Complete
Back to Day List ↑
ASP.NET MVC Day 3
Day 3 of 45
SOOPRO Pathshala Exercises
Pass id,name,gender,city salary to action method of mvc and return the concatenation result to web browser.
Pass three integer numbers to action method of mvc and return sum to web browser.
Pass two float numbers to action method of mvc and return average to web browser.
Try to print sum of four integer numbers using razor view engine in mvc.
Mark Day 3 as Complete
Back to Day List ↑
ASP.NET MVC Day 4
Day 4 of 45
SOOPRO Pathshala Exercises
Write a program to pass three long numbers to action method and return average to web browser.
Write a program to pass two integer to action method and return table of each numbers to web browser.
Write a program to pass two string value to action method and try to concatenate and return first two letters of first string and last two letter of second string to web browser.
Write a program to return reverse of your name to web browser.
Write a program to print add,sum,multiply and divide of three float numbers on razor view engine.
Mark Day 4 as Complete
Back to Day List ↑
ASP.NET MVC Day 5
Day 5 of 45
SOOPRO Pathshala Exercises
Strore id,name,gender,city and salary of employee in model class and print details of employee on view page.
Print month name in mvc using switch case (use razor view engine).
Print maximum of three integer number using ladder-if in mvc (use razor view engine).
Mark Day 5 as Complete
Back to Day List ↑
ASP.NET MVC Day 6
Day 6 of 45
SOOPRO Pathshala Exercises
Print table of maximum among two integer numbers on razor view engine.
Print factorial of minimum among two integer numbers on razor view engine.
Print sum of table of any integer number on razor view engine.
Try to print student details using model having id,name,gender, city and mobile no.
Mark Day 6 as Complete
Back to Day List ↑
ASP.NET MVC Day 7
Day 7 of 45
SOOPRO Pathshala Exercises
Pass your name from controller to view using ViewData.
Pass current date from controller to view using ViewData.
Pass list of colors from controller to view using ViewData.
Pass your list of favorite food from controller to view using ViewData.
pass details of Customer like id,name,gender,city, and amount from controller to Model and view using ViewData.
Mark Day 7 as Complete
Back to Day List ↑
ASP.NET MVC Day 8
Day 8 of 45
SOOPRO Pathshala Exercises
Create a model for book having bookid,bookname and bookprice. try to print book details on view page using viewData.
Reverse of four digit given numbers, store it in viewdata and print on view page.
Store reverse of your full name in viewdata and print it on viewpage.
create a model for customer having id,name,email,mobile,dob,address and city. try to print customer details on view page using viewdata.
Mark Day 8 as Complete
Back to Day List ↑
ASP.NET MVC Day 9
Day 9 of 45
SOOPRO Pathshala Exercises
Pass table of 1 to 5 in viewBag and print it on view page.
Pass prime or non prime of 2 to 20 in viewBag and print it on view page.
Pass factorial of 1 to 5 in viewBag and print it on view page.
Create customer model having id,name,gender,amount store it in viewBag and print it on view page.
Mark Day 9 as Complete
Back to Day List ↑
ASP.NET MVC Day 10
Day 10 of 45
SOOPRO Pathshala Exercises
Print list of favorite sport using TempData in next subsequent request.
Print list of favorite color using session in two different view pages.
Print sum of even numbers and odd numbers between 1 to 20 using viewData.
Print average of odd numbers of 1 to 20 using tempData.
Use keep() function with TempData to retain information for further call.
Mark Day 10 as Complete
Back to Day List ↑
ASP.NET MVC Day 11
Day 11 of 45
SOOPRO Pathshala Exercises
create menu driven program in MVC, on choice 1 short note on ViewData, on choice 2 print short note on ViewBag, on choice 3 print difference of ViewBag and and viewData, onn choice 4 print short notes asp.NET MVC
HINT : Take choice from url.
Mark Day 11 as Complete
Back to Day List ↑
ASP.NET MVC Day 12
Day 12 of 45
SOOPRO Pathshala Exercises
Create menu driven program in mvc, on choice 1 it should display list of fav colors, on choice 2 display list of fav sports, on choice 3 display list of fav foods, on choice 4 print short notes on session, on choice 5 print short notes on tempdata.
Print list of float numbers using tempdata in three different view pages.
Print list of chars using session in five different view pages.
Mark Day 12 as Complete
Back to Day List ↑
ASP.NET MVC Day 13
Day 13 of 45
SOOPRO Pathshala Exercises
Create a simple website having Home,About,Contact and Login page. try to link each page with action link.
Create a webpage in mvc to print list of integer number using inline html helper.
Create a webpage in mvc to print list of float numbers using inline html helper.
Create a webpage that contains textbox,radiobutton,checkbox,dropdownlist and password field.(use standard html helper)
Mark Day 13 as Complete
Back to Day List ↑
ASP.NET MVC Day 14
Day 14 of 45
SOOPRO Pathshala Exercises
create details form in mvc having Title,Name,Gender,Email,Mobile,Technology,Address,City and State.
Print even and odd of number list using inline helper.
Print prime and non-prime of number list using inline helper.
Print factorial of numbers list using inline helper.
Mark Day 14 as Complete
Back to Day List ↑
ASP.NET MVC Day 15
Day 15 of 45
SOOPRO Pathshala Exercises
Write a program to print sum of each table between 1 to 5 using inline helper in mvc.
Write a program to print square of even number between 1 to 10 using inline helper in mvc.
Write a program to print area of circle on choice 1,diameter of circle on choice 2, and circumference of circle on choice 3 using inline helper in mvc.
Write a program to print even sum and odd sum of 3 to 30 using inline helper.
Mark Day 15 as Complete
Back to Day List ↑
ASP.NET MVC Day 16
Day 16 of 45
SOOPRO Pathshala Exercises
Create strongly typed helper for id,name,gender,city and salary properties.
Create templated helper for id,name,gender,city and salary.
Create custom helper for image tag using extension method.
Mark Day 16 as Complete
Back to Day List ↑
ASP.NET MVC Day 17
Day 17 of 45
SOOPRO Pathshala Exercises
Write a program to print maximum of four float number using inline helper in mvc.
Write a program to print sum of maximum and minimum of two integer using inline helper.
Display your details like id,name,gender,city,salary and dob using strongly typed helper.
Display employee details like id,name,gender,city,salary and dob using strongly typed helper.
Display current date using templated helper.
Mark Day 17 as Complete
Back to Day List ↑
ASP.NET MVC Day 18
Day 18 of 45
SOOPRO Pathshala Exercises
Create traditional routing for displaying single student record on the basis of their id.
Create traditional routing for displaying all students.
Create attribute routing for displaying list of employees.
Mark Day 18 as Complete
Back to Day List ↑
ASP.NET MVC Day 19
Day 19 of 45
SOOPRO Pathshala Exercises
Print short notes on session in mvc on choice 1, print short notes on viewData on choice 2, print short notes on viewBag on choice 3, and print short notes on tempData on choice 4
Create templated helper for id,name,gender,city and amount of customer, try to print all details of customer using templated helper
Create image custom helper using extension method.
Create sample login form in mvc using strongly typed view.
Mark Day 19 as Complete
Back to Day List ↑
ASP.NET MVC Day 20
Day 20 of 45
SOOPRO Pathshala Exercises
Create a webform in mvc to add two integer numbers using strongly helper, take button and textbox to perform action
Create a webform that perform unit converter in mvc using strongly helper
Create a login form having admin and user authority, on admin login it should return admin dashboard and on user login it should return user dashboard
Mark Day 20 as Complete
Back to Day List ↑
ASP.NET MVC Day 21
Day 21 of 45
SOOPRO Pathshala Exercises
Print maximum of four numbers using strongly helper
Print minimum of four numbers using strongly helper
Print average of four float numbers using strongly helper
Print reverse of your first name using strongly helper
Print reverse of integer of four digit integer using strongly helper
Mark Day 21 as Complete
Back to Day List ↑
ASP.NET MVC Day 22
Day 22 of 45
SOOPRO Pathshala Exercises
Print concatenation of first and last letter of your first name using strongly helper
Print reverse of five digit number using strongly helper
Print value of textbox to different page in mvc
Print total length of textbox value in different page in mvc
Mark Day 22 as Complete
Back to Day List ↑
ASP.NET MVC Day 23
Day 23 of 45
SOOPRO Pathshala Exercises
Show employee details like id,name,title,email,mobile,address & city using code first approach in mvc.
Mark Day 23 as Complete
Back to Day List ↑
ASP.NET MVC Day 24
Day 24 of 45
SOOPRO Pathshala Exercises
Create student management system project in mvc.
Mark Day 24 as Complete
Back to Day List ↑
ASP.NET MVC Day 25
Day 25 of 45
SOOPRO Pathshala Exercises
Perform crud operation on employee table using database first approach.
Mark Day 25 as Complete
Back to Day List ↑
ASP.NET MVC Day 26
Day 26 of 45
SOOPRO Pathshala Exercises
Bind dropdownlist using database first approach.
Bind dropdownlistfor using database first approach.
Bind radiobutton using database first apporach.
Bind radiobuttonfor using database first apporach.
Bind listbox uisng database first approach.
Bind listboxfor uisng database first approach.
Mark Day 26 as Complete
Back to Day List ↑
ASP.NET MVC Day 27
Day 27 of 45
SOOPRO Pathshala Exercises
Print list of employee using database first approach.
Mark Day 27 as Complete
Back to Day List ↑
ASP.NET MVC Day 28
Day 28 of 45
SOOPRO Pathshala Exercises
Create details form having title, name, gender, email, mobile, technology, city and country.Try to print all the details using viewbag.
Mark Day 28 as Complete
Back to Day List ↑
ASP.NET MVC Day 29
Day 29 of 45
SOOPRO Pathshala Exercises
Write a program to return text file using file result return.
Write a program to return content using content result return.
Write a program to return js using js result return.
Mark Day 29 as Complete
Back to Day List ↑
ASP.NET MVC Day 30
Day 30 of 45
SOOPRO Pathshala Exercises
Wap to return empty result.
Wap to return content result.
Wap to return json result
Mark Day 30 as Complete
Back to Day List ↑
ASP.NET MVC Day 31
Day 31 of 45
SOOPRO Pathshala Exercises
Pass data from view to controller using request method.
Pass data from view to controller using form collection method.
Pass data from view to controller using strongly binding.
Pass data from view to controller using parameters.
Mark Day 31 as Complete
Back to Day List ↑
ASP.NET MVC Day 32
Day 32 of 45
SOOPRO Pathshala Exercises
Create a textfield in mvc that allow only numbers.
Create a textfield in mvc that allow only alphabets.
Create a textfield in mvc that do not allow special symbols like $,%, #, @ etc.
Create a textfield that allow only 10 letters minimum and 50 letters maximum.
Create a textfield in mvc that do not allow white space.
Mark Day 32 as Complete
Back to Day List ↑
ASP.NET MVC Day 33
Day 33 of 45
SOOPRO Pathshala Exercises
Create custom validation for not allowing neagative age in the field
Mark Day 33 as Complete
Back to Day List ↑
ASP.NET MVC Day 34
Day 34 of 45
SOOPRO Pathshala Exercises
Perform crud operations in mvc using ado.net, use model as business object.
Mark Day 34 as Complete
Back to Day List ↑
ASP.NET MVC Day 35
Day 35 of 45
SOOPRO Pathshala Exercises
CREATE CRUD APPLICATION USING MODEL AS BUSINESS OBJECTS... TRY TO CONNECT DATABASE USING ADO.NET
Mark Day 35 as Complete
Back to Day List ↑
ASP.NET MVC Day 36
Day 36 of 45
SOOPRO Pathshala Exercises
create crud application using model as business object, try to connect database using ado.net
Mark Day 36 as Complete
Back to Day List ↑
ASP.NET MVC Day 37
Day 37 of 45
SOOPRO Pathshala Exercises
Work on crud application once more using ado.net
Mark Day 37 as Complete
Back to Day List ↑
ASP.NET MVC Day 38
Day 38 of 45
SOOPRO Pathshala Exercises
Try to remove last letter of your first name by user input in mvc.
Try to remove first letter of your first name by user input in mvc.
Try to remove first and last letters of your first name by user input in mvc.
try to concatenate first and last letters of your first name and print it using viewdata on view page by user input.
Mark Day 38 as Complete
Back to Day List ↑
ASP.NET MVC Day 39
Day 39 of 45
SOOPRO Pathshala Exercises
Create login and logout using forms authentication in mvc
Mark Day 39 as Complete
Back to Day List ↑
ASP.NET MVC Day 40
Day 40 of 45
SOOPRO Pathshala Exercises
Bind dropdownlistfor using database first approach.
Bind listboxfor using database first approach.
Bind radiobuttonfor using database first approach.
Mark Day 40 as Complete
Back to Day List ↑
ASP.NET MVC Day 41
Day 41 of 45
SOOPRO Pathshala Exercises
Bind dropdownlistfor using database first approach.
Bind radiobuttonfor using database first approach.
Bind listboxfor using database first approach.
Mark Day 41 as Complete
Back to Day List ↑
ASP.NET MVC Day 42
Day 42 of 45
SOOPRO Pathshala Exercises
Wap to return js in mvc.
Wap to return content in mvc.
Wap to return file in mvc.
Wap to return json in mvc.
Mark Day 42 as Complete
Back to Day List ↑
ASP.NET MVC Day 43
Day 43 of 45
SOOPRO Pathshala Exercises
Write a program to calculate area & perimeter of rectangle and circle.take length,breadth,radius from user.
Mark Day 43 as Complete
Back to Day List ↑
ASP.NET MVC Day 44
Day 44 of 45
SOOPRO Pathshala Exercises
Write a program to obtain sum of the first and last digit of a four digit number. take number from user.
If the total selling price of 15 items and the total profit earned on them is input by the user. write a program to calculate cost price of 1 item.
Mark Day 44 as Complete
Back to Day List ↑
ASP.NET MVC Day 45
Day 45 of 45
SOOPRO Pathshala Exercises
Write a program which initialize earning of an employee. The program should calculate the income tax to be paid by the employee as per the criteria given below.
subrate itrate
upto rs 50000 nill
upto rs 60000 10%
upto rs 150000 20%
upto rs 200000 30%
upto rs 500000 40%
Mark Day 45 as Complete
Back to Day List ↑