Data Haunting

Easy Solutions Destination

By

File Uploading in Asp.net MVC

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.

By

Render a Razor view to string in Asp.net 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.

By

Client and Server side Validation using DataAnnotation in MVC

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.

By

Persisting Data With TempData

TempData is used to pass data from Controller(Action) to Controller(Action) means one current request to subsequent request(from one page to another page). In this article we will discuss how to persist data with TempData using Keep and Peek method as well we will also see the difference between Keep and Peek method.

By

ViewBag, ViewData and TempData in Asp.net MVC

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.

By

A potentially dangerous request.form value was detected from the client error in Asp.net Web forms and MVC

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.

By

Ajax.ActionLink and Ajax.BeginForm not working in Asp.net MVC

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.

By

select2 remote data example in asp.net mvc

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 .

By

Select2 simple example in Asp.net MVC

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.

By

Features of All Asp.net MVC Framework Version

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 .