Skip to main content

Posts

Showing posts from June, 2020

CRUD Operation in ASP.NET MVC Using ADO.NET Jquery Ajax

In this article of ASP.NET MVC we will learn about CRUD operation using jquery ajax so let's start. Firstly open visual studio: Go to File => New and Select Project,when you select project then New Project Dialogbox will appear. Select ASP.NET Web Application (.NET Framework) and give a name to your project , as we are building CRUD Operation so our project's name could be CRUD_OPEATION and then select OK. Now you will see a new dialogbox, select Empty Template and MVC folder. After create project you will see a like screen like this: Now go to Models folder and add ADO.NET Entity Data Model and give any name like in my case i give dbEntities and selec OK: After that you will see a dilogbox called Entity Data Model Wizard, select EF Designer from database and select Next: After that a new dilogbox will appear and it will ask a new connection to your sql server, then select New Connection and give server name ( if you want to see your server name then open sql server,it will ...

Login Using ADO.NET MVC

In this article of ASP.NET MVC we will learn about login functionality using ADO.NET so let's start. Firstly create Model Class,in my case i create class namely called Employee and hit the code: using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace SignIn_SignUp_Using_AdoDotNet.Models {     public class Employee     {         public int id { get; set; }         public string UserName { get; set; }         public string UserPassword { get; set; }     } } Then create a controller and hit the code below: using SignIn_SignUp_Using_AdoDotNet.Repository; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; using System.Data.SqlClient; using System.Web.Mvc; using System.Web.DynamicData; using SignIn_SignUp_Using_AdoDotNet.Models; namespace SignIn_SignUp_Us...

Auto Complete in ASP.NET MVC Using Jquery Ajax

In this article of ASP.NET MVC we will learn about AutoComplete textbox using ajax and jquery: Firstly make a connection with database.In my case i have used Entity Model. Then create a Controller,my case i create HomeController: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using test.Models; namespace test.Controllers {     public class HomeController : Controller     {          EmpEntities db = new EmpEntities();         public ActionResult Index()         {             return View();         }         public ActionResult getffvalue(string searchInput)         {             ...