(#61) Get and save dropdown data in database | Asp.Net Core tutorial

Поділитися
Вставка
  • Опубліковано 24 січ 2025

КОМЕНТАРІ • 28

  • @vaishalinarayan2919
    @vaishalinarayan2919 4 роки тому +1

    Super, Just finished all the videos and you are amazing!..Simple, detailed, short explanation. Thanks alot.
    Egarly waiting for next videos!

  • @deepro__
    @deepro__ Рік тому

    Thank you very much sir, this video really helpful for me .

  • @priyanshpatel9850
    @priyanshpatel9850 3 роки тому

    ThankYou Sir For this Playlist It help me alot for my study and project

  • @ayan.kemel7
    @ayan.kemel7 4 роки тому +1

    Hello, please help me. There was such an error :
    An unhandled exception occurred while processing the request.
    NullReferenceException: Object reference not set to an instance of an object.
    Webgentle.BookStore.Controllers.BookController.AddNewBook(bool isSuccess, int bookId) in BookController.cs, line 46
    NullReferenceException: Object reference not set to an instance of an object.
    Webgentle.BookStore.Controllers.BookController.AddNewBook(bool isSuccess, int bookId) in BookController.cs
    +
    ViewBag.Language = new SelectList(await _languageRepository.GetLanguages(), "Id","Name");
    lambda_method(Closure , object )

  • @vinaydeveloper1369
    @vinaydeveloper1369 4 роки тому

    This video very helpful sir ji 🙏🙏🙏

  • @HexArtificer
    @HexArtificer 4 роки тому +1

    Hello! So in the previous video, you removed multi-select to use enums and you've carried on using single-select. In the video that you covered multi-select, you didn't cover how to send that new data to the database- the database was still receiving the singular string value. Would you be happy to cover that?

  • @deonandanoraon3511
    @deonandanoraon3511 2 роки тому

    Hi Nitish, your videos are very helpful and informative. can you please upload video on Bind DropDownList and DropDownList based on another DropDownList selected value in ASP.NET CORE 3.1

  • @ammadkhan2352
    @ammadkhan2352 3 роки тому

    i Have followed every step and getting below error plz reproduce and guide why i am getting this
    NullReferenceException: Object reference not set to an instance of an object.
    Microsoft.AspNetCore.Mvc.Rendering.MultiSelectList.GetListItemsWithValueField()

  • @SaurabhKumar-om2gz
    @SaurabhKumar-om2gz 3 роки тому

    Is it fine to Change Model Randomly also instead of using multiple model for different Operation Can we use ViewModel. Its very informative but implementation is bit Complicated.

  • @studytoexcel6647
    @studytoexcel6647 4 роки тому +1

    Great job for the good work. After watching and implement this lesson i continue to get this error when adding new book
    SqlException: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Books_Language_LanguageId". The conflict occurred in database "BookStore", table "dbo.Language", column 'LanguageId'. The statement has been terminated.

    • @azizpatel5842
      @azizpatel5842 3 роки тому +1

      Hey, I was getting a similar error when I was trying to add a migration for the table. I fixed this by removing any existing data in the tables then adding a new migration and updating the database.

  • @keshavkoirala2427
    @keshavkoirala2427 4 роки тому

    It shows BookStore.models.BookLanguage in all the drop drown items instead of languages . why ?

    • @keshavkoirala2427
      @keshavkoirala2427 4 роки тому

      Problem solved . I forget to pass second and third parameter in SelectList()

  • @tungthanh8750
    @tungthanh8750 3 роки тому

    Why 14:57 Id = 0 without error while my code returns view

  • @Narendra471
    @Narendra471 3 роки тому

    HI Nitish sir you video very information and useful but sir I have one question
    edit mode cascading dropdownlist in asp.net core mvc
    exam dropdown1 value 1 and dropdown2 how can be set from database

  • @xcaliber125
    @xcaliber125 4 роки тому

    really good

  • @Mahesh-ox6sn
    @Mahesh-ox6sn 4 роки тому

    Hi Nitish, your videos are very helpful and informative. can you please upload video on Azure SSO ( single sign on). and how to configure SSO from visual studio?

  • @Brombrom41
    @Brombrom41 4 роки тому

    Please cover Dropdown using ViewModel instead of using ViewData or ViewBag also.

    • @WebGentle
      @WebGentle  4 роки тому +2

      Instead of using viewbag you can pass the data in model property and use your model property on view in asp-items attribute. Rest everything will be same.

  • @pourianayeb1063
    @pourianayeb1063 4 роки тому

    Master Nitish are you going to add globalization to this app? that would be awesome.

    • @WebGentle
      @WebGentle  4 роки тому

      Good idea. Definitely will try

  • @putinninovacuna8976
    @putinninovacuna8976 3 роки тому

    repository concept is a such hard thing to learn

  • @dabanabdulla9916
    @dabanabdulla9916 3 роки тому +1

    System.NullReferenceException: 'Object reference not set to an instance of an object.'
    Bookstore.Data.Book.language.get returned null when getaallbooks
    in getallbook methos I had too add this line to fix it
    book.language =await _db.langtable.Where(x => x.id == book.languageId).FirstOrDefaultAsync();

    • @ammadkhan2352
      @ammadkhan2352 3 роки тому +1

      I am getting same error in Droplist binding don't know what is the issue

  • @syedmuhammadali7406
    @syedmuhammadali7406 4 роки тому

    This method is too tough kindly use it as to make it easy ,

  • @samuelseverua
    @samuelseverua 3 роки тому

    useless, Greate concepts but 0 following potential