In this article we will see that how to upload a file in Asp.net MVC as well we go through different different criteria like single file upload, multiple files upload and strongly type viewmodel file upload in MVC.
Today in this article we will see how to render razor view or partial view to string in Asp.net MVC. View or partial view contains generally html tags and razor syntax, if we can convert view into string using C# than we can pass string as a Json Result from controller to view(for Ajax call). Let’s see sample code.
In this article we will see how to validate Asp.net MVC form using client and server side validation using Data Anotataion. Here we will use DataAnnotation’s different attribute like Required, RegularExpression, EmailAddress, StringLength, Range, MinLength, MaxLength, DataType.EmailAddress, DataType.Password etc.
In Asp.net MVC we can pass data from controller to view and controller(action) to controller(action) in next request using ViewBag, ViewData and TempData but all these three properties have different meaning in different scenario. In this article we will discuss difference between ViewBag, ViewData and TempData in MVC and when to use these three properties.
I have faced A potentially dangerous request.form value was detected from the client error many times while working with CkEditor or by entering special character in Asp.net web forms and Asp.net MVC. Here I am explaining complete solutions step by step and also reason for this error.
In Asp.net MVC Ajax Request like ActionLink and BeginForm not worked many times and we faced problems like Ajax Request refresh whole page or replace page with partial view also other problems like Ajax request call controller twice and Ajax Beginform working but Ajax Actionlink not working. Here we will see all these different reasons for not working Ajax Request and also proper method to solve it.
In this article we will see how Select2 load data from server side while we searched in textbox wrapped with Select2 in Asp.net MVC. Select2 Provide built in functionality to use Ajax and Json/JsonP . Here we will see how to implement remote data in Select2 .
In this article we will see how to implement Select2 in Asp.net MVC as I have not found any where good article about Select2 simple example in Asp.net MVC . Here I will demonstrate step by step guidance to use Select2 in Asp.net MVC.
This article is about a brief history of Asp.net MVC Framework with it’s release notes and compared MVC’s all version with newly added features in Asp.net MVC Framework which is stable still now .
In asp.net MVC we required to customize checkbox validation as it is not provided in to Data Annotation for Model. Here we will see how to validate checkbox at client side and server side in Asp.net MVC.