Asp.Net MVC 5 Tutorial

Asp.Net MVC 5

Hi, Well come to Fahad Hussain Free Computer Education Here you can learn Complete computer Science, IT related course absolutely Free!
MVC is one of the design pattern, stand for Model View Controller, which enable you to make interactive Dynamic website, the concept of MVC used in PHP, (different framework of php), AngularJs and asp.net. But in this course we will learn MVC in asp.net.

The whole course base on the concept of Theory and Practical!

Do Subscribe the Channel for latest updates... For Further Assistance and code visit: https://fahadhussaincs.blogspot.com/ For Complete course YouTube Channel: https://www.youtube.com/channel/UCapJ...


Session / Tutorial No. 01:
Click to WATCH the Series of Videos

Introduction aboui asp.net and MVC
In Asp.Net take the push button and write the code below:

Response.WriteLine("Hi, Fahad Hussain");

whereas, in asp.Net MVC take the Controller, named it Home, and code it:

Public string Index()
{
return "Fahad Hussain";
}

Session / Tutorial No. 02:
Click to WATCH the Series of Videos

Change the id parameter into RollNumber from RouteConfig.cs file
the, write the below code in Home Controller:

Public string Index(string RollNumber)
{
return "Fahad = "+ RollNumber;

}

Public string Index1()
{
return "Fahad";

}

For tracing the code, go to Web.config file, then write the below code...

<trace enabled="true" pageOutput="false" />


Session / Tutorial No. 03 :
Click to WATCH the Series of Videos
ViewBag, ViewData, TempData in asp.net MVC
Click to Download the Project


Session / Tutorial No. 04:
Click to WATCH the Series of Videos
What is Model, and how does it work!
Click to Download the Project


Session / Tutorial No. 05:
Click to WATCH the Series of Videos
What is Entity Framework(EF), usage of EF with Model and Database...
DB Code...

Create table tblCompany
(
 id int Primary Key Identity(1,1),
 name nvarchar(50),
 product nvarchar(10),
 location nvarchar(50),
)
Insert into tblCompany values(1,'ABC','Dress','KHI')
Insert into tblCompany values(2,'DEF','Glass','LHR')


select * from tblCompany

--Now, use the below code's project...
Click to Download the Project

Session / Tutorial No. 06:
Click to WATCH the Series of Videos
Click to Download the Project


Session / Tutorial No. 07:
Click to WATCH the Series of Videos
Click to Download the Project

Session / Tutorial No. 08:
Click to WATCH the Series of Videos
Click to Download the Project

Session / Tutorial No. 09:
Click to WATCH the Series of Videos
Click to Download the Project

Session / Tutorial No. 10:
Click to WATCH the Series of Videos
Click to Download the Project

Session / Tutorial No. 11:
Click to WATCH the Series of Videos

Theory Session, watch till the end for better understand about the different approaches in Entity framework, work and their need!

Session / Tutorial No. 12:
Click to WATCH the Series of Videos
Click to Download the Project

Session / Tutorial No. 13 to 19:
Click to WATCH the Series of Videos
Click to Download the Project

Session / Tutorial No. 20 & 21:
Click to WATCH the Series of Videos

Click to Download the Project
Session / Tutorial No. 22:
Click to WATCH the Series of Videos

Click to Download the Project
Session / Tutorial No. 23:
Click to WATCH the Series of Videos


Click to Download the Project
Session / Tutorial No. 24:
Click to WATCH the Series of Videos
Click to Download the Project

Session / Tutorial No. 25:
Click to WATCH the Series of Videos
Click to Download the Project

Session / Tutorial No. 26:
Click to WATCH the Series of Videos
Click to Download the Project

Session / Tutorial No. 27:
Click to WATCH the Series of Videos
Click to Download the Project

Session / Tutorial No. 28 & 29:
Click to WATCH the Series of Videos
Click to Download the Project

Session / Tutorial No. 30 & 31:
Click to WATCH the Series of Videos
Click to Download the Project

Session / Tutorial No. 32 & 33:
Click to WATCH the Series of Videos
Click to Download the Project

Session / Tutorial No. 34:
Click to WATCH the Series of Videos
Click to Download the Project

Session / Tutorial No. 35:
Click to WATCH the Series of Videos

Click to Download the Project

Session / Tutorial No. 36 & 37:
Click to WATCH the Series of Videos


Click to Download the Project

8 comments:

  1. could you also upload the word file

    ReplyDelete
  2. Dear sir
    lec 13 mvc tutorial ...password option exception.....on signup.
    error is.....System.FormatException: 'Input string was not in a correct format.'
    )
    please solve this problem

    ReplyDelete
  3. Sir Please Upload Your Word file Notes for each Section.

    ReplyDelete
  4. MVC documentation kha sa download kar sakta hian

    ReplyDelete
  5. public ActionResult Login(Models.Membership model)
    {
    using (var context = new ECommerceEntities())
    {
    bool isValid = context.Users.Any(x => x.U_Name == model.Username && x.Password == model.Password);
    if(!isValid)
    {
    FormsAuthentication.SetAuthCookie(model.Username, false);
    return RedirectToAction("Index","Home1");
    }
    ModelState.AddModelError("", "Invalid Username/Password !");
    return View();
    }
    }

    here, after click on login button, error showing - "Invalid Username/Password !". what will be the possible error. Kindly reply as soon

    ReplyDelete
  6. public ActionResult Login(Models.Membership model)
    {
    using (var context = new ECommerceEntities())
    {
    bool isValid = context.Users.Any(x => x.U_Name == model.Username && x.Password == model.Password);
    if(!isValid)
    {
    FormsAuthentication.SetAuthCookie(model.Username, false);
    return RedirectToAction("Index","Home1");
    }
    ModelState.AddModelError("", "Invalid Username/Password !");
    return View();
    }
    }

    here, after click on login button, error showing - "Invalid Username/Password !". what will be the possible error. Kindly reply as soon

    ReplyDelete
  7. Create logout c# in mvc

    ReplyDelete

Fell free to write your query in comment. Your Comments will be fully encouraged.