Serving Industries Worldwide

Innovative Ways - Satisfied Clientele

An in depth guide on View Result and Partial View Result in MVC

An in-depth guide on View Result and Partial View Result in MVC


Table of Content 1. What is Action Result? 2. Types of Action Results 2.1. View Result 2.2. Partial View Result 2.3. Redirect Result 2.4. Redirect to Action Result 2.5. JSON Result 2.6. File Result 2.7. Content Result 3. Difference between ViewResult and Partial ViewResult 4. Conclusion What is Action Result? In MVC, Action Results are results of action methods or return types of the corresponding action methods. There are...

read more
How to Upload and return files in ASP.NET MVC

How to Upload and return files in ASP.NET MVC?


Table of Content 1. Creating MVC Application 1.1. Adding Folder 2. Conclusion   In this blog, we will shed light on how to upload and return a file in ASP.NET MVC. When a user uploads files, they should be uploaded to their project folder. We need to create a folder for the uploaded file in our project. Let’s get started with creating an MVC application. Creating MVC Application Create a new MVC application for file uploading and...

read more
Different ways of Binding Razor DropDownList in ASP.NET MVC5

Different ways of Binding Razor DropDownList in ASP.NET MVC 5


Table of Content 1. DropDownList 2. What is Razor View in MVC? 3. How do I bind a DropDownList in MVC Razor? 4. Conclusion DropDownList A dropdown menu is a method to show a huge list of options since only one choice is displayed initially until someone activates the dropdown box. Figure 1: DropDownList   What is Razor View in MVC? Razor View is a markup syntax that lets us embed server-based code into web apps using C#. It is not a programming...

read more
Explain Model Validation Using Data Annotation in ASP.NET MVC

Explain Model Validation Using Data Annotation in ASP.NET MVC


Table of Content 1. What is Data Validation? 2. What are Data Annotations? 3. Types of Data Annotations in ASP.NET MVC 3.1. Require 3.2. DataType 3.3. StringLength 3.4. Range 3.5. DisplayName 3.6. DisplayFormat 3.7. MaxLength 3.8. MinLength 3.9. Bind 3.10. RegularExpression 4. Create MVC Application for Data Annotation Demo 5. Conclusion What is Data Validation? Data Validation is an important aspect of developing web...

read more
Explain Forms Authentication in ASP.NET MVC

Explain Forms Authentication in ASP.NET MVC


Table of Content 1. Introduction 2. Create Employee Table 3. Create Department Table 4. Create Users Table 5. Create UserRoles Table 6. Complete code for HomeController 7. Register View Code 8. Login View Code 9. Use Authorize Attribute 10. Conclusion Introduction Sign up, sign in, and Log out are three things that we always have in mind while developing a web application. The following points will be discussed in depth as part of this. How...

read more