Now, we will learn how to perform validations at the client side with the help of JavaScript/jQuery. The main advantage of this approach is given below. We are able to improve the performance of our web application, since it runs…
ASP.NET CORE 2.0 Hosting – Post The Data To ASP.NET MVC Controller Using JQuery Ajax
This blog will demonstrate, how to post the data to ASP.NET MVC controller(s) using JQuery Ajax. For that, I have created one controller “JQueryAjaxCallController” with the post action method “AjaxPostCall” and a class “Employee” as below. Controller
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace JQueryAjaxCallINMVC.Controllers { public class JQueryAjaxCallController: Controller { // // GET: /JQueryAjaxCall/ public ActionResult Index() { return View(); } [HttpPost] public JsonResult AjaxPostCall(Employee employeeData) { Employee employee = new Employee { Name = employeeData.Name, Designation = employeeData.Designation, Location = employeeData.Location }; return Json(employee, JsonRequestBehavior.AllowGet); } } public class Employee { public string Name { get; set; } public string Designation { get; set; } public string Location { get; set; } } } |
View…
ASP.NET CORE 2.0 Hosting – How to Create Multiview and View controls in ASP.NET?
In this tutorial, I will explain you about How to create Multiview and View controls in ASP.NET. As the name states, a multiview is created from multiple read controls, and every view control inturn will have controls within it. The…
How to Create Stored Procedure with Transaction and Try Catch Block?
Today, i will learn how to create Sample Stored procedure with Transaction and try catch block. The catch block is a series of statements beginning with the keyword catch, followed by an exception type and an action to be taken.…
ASP.NET CORE 2.0 Hosting – How to Resize Multiline Textbox on Mouse Over in ASP.NET?
As we realize that jQuery is a quick, feature-rich and little JavaScript library. jQuery makes things like HTML traversal and control, and event handling, and Ajax of browsers.jQuery a mix of extensibility and adaptability. We take an Example here in…

ASP.NET Core 2.0 Hosting: Logging Database Operations in Entity Framework 6 How to Disable Cut,Copy and Paste of TextBox with jQuery in ASP.NET?
In this post, I will explain you about how to disable cut, copy and paste of TextBox with jQuery in ASP.NET Core 2.0. First step you must do is write the below code in the .aspx page. That code below…
ASP.NET Core 2.0 Hosting: Logging Database Operations in Entity Framework 6
In this article you will learn the new feature “Logging Database Operations” introduced with Entity Framework 6. This features works for models created with Code First or the EF Designer. This new feature gives us the opportunity to log every…
ASP.NET Core 2.0 Hosting: RowDataBound Event In GridView In ASP.NET
In this tutorial, I will show you how to use a RowDataBound event in a GridView to highlight the rows or cells in ASP.NET. This example is helpful in situations where you need to highlight the GridView rows or cells…

ASP.NET Core 2.0 Hosting: Simple Steps to Create Connection String
In this blog, I am going to discuss how to create Connection String in simple steps. Most of the time, if we have to create Connection string or we go for a machine test interview we do not remember Connection…

ASP.NET Core 2.0 Hosting: HTTP Error 404.0 0 Not Found in MVC
The Resource you are looking for has been removed, had its name changed, or is temporarily unavailable. I saw this error today while working on a MVC Web Project, this is a common error we get while running websites and…