Different Types Of Action Results In ASP.NET- MVC

Apr 23, 2019 BY xtreme

An ActionResult is a return type of a controller method in MVC. Types of ActionResult1, View, public ViewResult Index() { <!-- Normal Return --> ViewBag.ItemList = "Computer Shop Item List Page"; return View(); OR <!-- Return With Model --> @model School...

What are the different ways to pass/transfer content/data - MVC

Apr 23, 2019 BY xtreme

.A. From View To Controller 1. Transfer directly to the second View/Action <a href='@Url.Action("ActionTo", new ModelData { Name = "ItBlow" })'>click me</a> public ActionResult ActionTo(ModelData m){} 2. POST data to a [HttpPost] Index action @using (Html.BeginForm()) { ...

How to bind records Using JQuery DataTables

Apr 23, 2019 BY xtreme

.JS filevar oTable; var ClassModule = { LoadGrid: function () { var buttonCommon = { exportOptions: { format: { body: function (data, row, column, node) { return data; ...

Filter record by Month and Year - Linq

Mar 04, 2019 BY SOL

This shows how to comparing the date part of datetime in a LINQ query. In a LINQ query it is easy to perform datetime comparisons, to compare only date not time part of a datetime field of data entity._events = (from a in _eventRegistory.Table where (a.fdate.Year == Year ...

Group of Radio Buttons - Asp.Net MVC

Feb 21, 2019 BY xtreme

introductionHtmlHelper class includes two extension methods to generate Radio element in a razor view: RadioButton() and RadioButtonFor()RADIOBUTTONThe Html.RadioButton() method creates a radio button element with a specified name, isChecked boolean ...

Dynamic Charts In ASP.NET MVC RAZOR - Chart Helper AND Linq

Feb 18, 2019 BY xtreme

INTRODUCTIONYou can easily create Charts from database using Charts Helper class in ASP.NET MVC Razor. System.Web.Helpers namespace supports a rich set of chart options and methods including bar, line, pie, doughnut, funnel, area and more..You can easily install System.Web.Helpers&nbs...