(#27) Display Model list data on view in Asp.Net Core | Asp.Net Core tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ต.ค. 2024
  • Subscribe WebGentle: goo.gl/PJr1pN
    Visit Our Website: bit.ly/2tElGud
    Visit WebGentle Community: bit.ly/35uOUsJ
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    For business inquiry contact: nitish.webgentle@gmail.com
    Follow us on
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    Facebook - bit.ly/36yZuQN
    Linkedin - bit.ly/2N6Onqk
    Twitter - bit.ly/2uv04AP
    Popular free courses from WebGentle
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    Jira tutorial - bit.ly/jiratuto...
    Azure DevOps tutorial - bit.ly/azuredev...
    .NET Core 3.0 fundamentals - bit.ly/dotnetcore3
    MVC5 tutorial - bit.ly/mvcbynitish
    LINQ Tutorial - bit.ly/linqbyni...
    Non generic collection in c# - bit.ly/nongener...

ความคิดเห็น • 27

  • @AdnanUlHaqCA
    @AdnanUlHaqCA 4 ปีที่แล้ว +2

    Your flow is amazing and keep the flow the same way. The way you are building the application from scratch and building it up is so amazing. Sometimes you copy the bootstrap code from somewhere, I suggest for future show those links as well but I see you do in many videos but on some it is not there. You can mention in the comment for those videos.

    • @WebGentle
      @WebGentle  4 ปีที่แล้ว

      Thanks @Adnan for the kind words and suggestions. Keep watching the videos and share your valuable feedback with me in the comment section.
      #KeepLearning

  • @WorldOfVarunApoorva
    @WorldOfVarunApoorva 3 ปีที่แล้ว

    Thanks you Nitish sir for this series. I have religiously been watching every bit your videos in this series so far and you have been so kind to be as precise as possible. Very excited to finish this till last section.

    • @WebGentle
      @WebGentle  3 ปีที่แล้ว

      So nice of you

  • @AdnanUlHaqCA
    @AdnanUlHaqCA 4 ปีที่แล้ว

    You are doing a great job brother. Thumbs up! This style of creating a app is very good. At start of the playlist where you mixed note pad with visual studio gave a bad impression and i believe that is the reason many people are leaving the play list. But now it is so amazing. I love this. Please keep building such applications in MVC such as LMS. Love you more.

  • @alanalee2743
    @alanalee2743 2 ปีที่แล้ว +1

    You the best

  • @Fkn1405
    @Fkn1405 4 ปีที่แล้ว

    Thank you very much for all these tutorials.

  • @AbhinavKumardns
    @AbhinavKumardns 4 ปีที่แล้ว

    Awesome, sir for bootstrap kindly add that in the comment section if possible

  • @adilmajeed3444
    @adilmajeed3444 3 ปีที่แล้ว

    Sir Nitish Thank you so much for providing us these great lectures , i have one query , you passed ienumerbale type @model, if we simply use @model webgentle.bookstore.Model and then use foreach loop , would it have worked ? or it is necessary to pass model in ienumerable type ?
    thank you

  • @bhadrik
    @bhadrik 3 ปีที่แล้ว

    Thank you again

  • @gokhanc.5250
    @gokhanc.5250 4 ปีที่แล้ว

    Thanks, you are perfect.

  • @ms.sufiya9353
    @ms.sufiya9353 2 ปีที่แล้ว +1

    hey , I get an error in @foreach(var book in Model) line .nullreferenceexception: object reference not set to an instance of an object. .
    Please, help me out?

    • @rozinaansari5395
      @rozinaansari5395 ปีที่แล้ว

      Yes I had literally the same issue this issue occurs BCz we hadn't pass the data in return view(); that's why showing null just replace it with return view(data); the error will be resolved 😊

  • @wongguanyan2141
    @wongguanyan2141 4 ปีที่แล้ว +1

    Hi sir! can you give the code of SVG tag that you use in this tutorial? I can't find in github and bootstrap! Hope to get your reply as soon as possible.Thanks

    • @vasiliv2000
      @vasiliv2000 3 ปีที่แล้ว

      you can find it on icons.getbootstrap.com/ For example I used this one:

  • @HammadArshad
    @HammadArshad 3 ปีที่แล้ว +1

    I'm facing this error
    Object reference not set to an instance of an object.
    BookShop.Controllers.BookController.Getbooks() in BookController.cs
    -
    public BookController()
    {
    BookRepository _bookRepositoty = new BookRepository();
    }
    public ViewResult Getbooks()
    {
    var data = _bookRepositoty.getallbooks();
    return View(data);
    }
    }
    }

  • @developerdailylife4791
    @developerdailylife4791 4 ปีที่แล้ว

    Is there is any videos in this course about publishing process using .net core as i think it's different from .net framework ?

    • @WebGentle
      @WebGentle  4 ปีที่แล้ว +1

      upcoming

    • @developerdailylife4791
      @developerdailylife4791 4 ปีที่แล้ว

      @@WebGentle thank you for replay , you did great job in this course

  • @musawerawan5479
    @musawerawan5479 4 ปีที่แล้ว

    Sir bootstrap 4 "container-fluid" not working on visual studio 2019 and if i increase its width then only increases on right side while the left remains fixed

  • @ammadkhan2352
    @ammadkhan2352 3 ปีที่แล้ว

    What if heave multiple grids with different models how will do this

  • @rokckerzzzz6080
    @rokckerzzzz6080 3 ปีที่แล้ว

    Sir, if I want to use 3 different model in same view for foreach loop, then how it know to @model directive to use which model to use in which foreach loop?

    • @WebGentle
      @WebGentle  3 ปีที่แล้ว +1

      Directly you cant. Use one of the following based on the requirement
      - Separate partial view
      - Separate view component
      - View Model

  • @silajitsaha3369
    @silajitsaha3369 2 ปีที่แล้ว

    How to render mote than 1 model in the view?

  • @coolkirans
    @coolkirans 2 ปีที่แล้ว

    Hi Sir, when we add book card code in GetAllBook.cshtml is add successfully.
    I add IEnumerable @modelIEnumerable
    But when use
    @foreach (var book in Model) and run this application then I got exception error which is
    An unhandled exception occurred while processing the request.
    NullReferenceException: Object reference not set to an instance of an object.
    AspNetCore.Views_Book_GetAllBook.ExecuteAsync() in GetAllBook.cshtml, line 9
    could you please help me ..