.Net, ASP.NET, C#, MVC 0 Comments

Make sure you include the correct unobtrusive ajax package; you want this:http://www.nuget.org/packages/Microsoft.jQuery.Unobtrusive.Ajax i.e., do this in the NuGet package manager console Install-Package Microsoft.jQuery.Unobtrusive.Ajax don’t use this older one: http://www.nuget.org/packages/jQuery.Ajax.Unobtrusive Also check you have unobtrusive ajax added into the project. 1. ./Views/Shared/_layouts.cshtml file should have the jqueryval bundle added to it, i.e., @Scripts.Render(“~/bundles/jquery”) @Scripts.Render(“~/bundles/bootstrap”) @Scripts.Render(“~/bundles/jqueryval”) @RenderSection(“scripts”, required:

Read More

.Net, ASP.NET, MVC 0 Comments

JsonResult and its properties The JSON format is an open standard format. The format of data looks very easy to understand and the data objects consist of attribute-value pairs. ContentEncoding: It helps to indicate the content encoding type, the default encoding for JSON is UTF-8. ContentType: It helps to indicate the content type. The default

Read More

.Net, ASP.NET, C#, MVC 0 Comments

HtmlHelper class includes two extension methods to generate a <select> element in a razor view: DropDownList() and DropDownListFor(). We will use the following Student model with DropDownList() and DropDownListFor() method. Example: Student Model public class Student { public int StudentId { get; set; } [Display(Name=”Name”)] public string StudentName { get; set; } public Gender StudentGender

Read More

Research 0 Comments

Android – Services A service is a component that runs in the background to perform long-running operations without needing to interact with the user and it works even if application is destroyed. A service can essentially take two states − State Description Started A service is started when an application component, such as an activity, […]

Research 0 Comments

Android – Services A service is a component that runs in the background to perform long-running operations without needing to interact with the user and it works even if application is destroyed. A service can essentially take two states − State Description Started A service is started when an application component, such as an activity, […]