store array in viewbag and retrieving in the view
In this post, we will discuss about how to store the array in view bag and how to use them in view. Controller A simple Controller action which store the string array in the ViewBag and
Validation in MVC4 Razor with the Data Annotation Validators in “MODEL”
Data Annotation Data validation play major role when developing web application. In Asp.net MVC, we can easily implement validation to application by using Data Annotation attribute to model. Data Annotation attribute classes are present in System.ComponentModel.
MVC Razor : Difference between @Html.Partial() and Html.RenderPartial()
Difference between @Html.Partial() and Html.RenderPartial() Html.Partial returns a string, Html.RenderPartial returns void. We can store the output of Html.Partial in a variable/able to return from function. In Html.RenderPartial, we can't result void.(ie.,directly writing to the
Partial View in MVC
Introduction to Partial View in MVC Partial view is special view which renders a portion of view content. Partial can be reusable in multiple views. It helps us to reduce code duplication. In other word
Implementing Globalization , Localization in MVC Razor
Implementing Globalization , Localization in MVC Razor Short introduction: Globalization : Tthe process of designing and developing application that functions in multiple cultures/locales. (Adapting a global product for a multiple language) Localization : The process
MVC Razor : How to call controller from html radio button click event using Jquery
In this post we will discuss about how to call the controller from the radio button click event using jquery. HTML : <div id="radio"> <input type="radio" id="Isactive" name="Isactive" value="1" >Yes</input > <input type="radio" id="Isactive" name="Isactive"
MVC – Passing JSON data from controller to the view
Passing JSON data from controller to the view UserDetailController.cs [HttpPost] [ValidateInput(false)] public JsonResult FetchUserDetailsByid(string userID) { List<UserDetailByID> userDetailollection; try { //return the User Details List userDetailollection = new GetUserDetailsByidModel().FetchUserDetailByid(UserID)); } catch (Exception ex) { throw