How to Show Modal Dialog alert or Popup Message Box in Asp Net Core using TempData in CodeFirst CRUD

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ต.ค. 2024
  • Previous Part
    • How to do Sort Search ...
    In this Video You can learn how to show a DialogModal MessageBox after submitting a form to the controller.
    Then you can learn how to pass data from controller to view and view to Controller using TempData in ASP.NET Core.
    I will show you the important methods (Peek and Keep) of the TempData.
    and the Video will show how to redirect the request to the correct page of the Pagination Bar after edit or delete action of the controller.
    Tempdata in Breif note
    1. Tempdata is a dictionary object used to store data.
    2. Data Stored in the TEMPDATA is available for the next Request.
    3. Tempdata is to pass data from controller to view. and also from View to Controller.
    4. Tempdata can pass data from one action method to another action method of the same or a different controller.
    5. Data stored in the Tempdata will be marked for deletion after it is read. and will be removed on the beginning of the next request.
    6. Peek Method of the Tempdata is used to Read the value with out marking it for deletion. So that it is available for the Next Request.
    7. Keep Method of the TempData is used to retain the value for the next request.
    Please watch the video. I hope you will definately Like it.
    Tags.
    TempData in ASP NET Core
    Temp Data Peek and Keep Methods in MVC
    Use of TempData in ASP.NET core. this an example.
    Here you can learn how to pass data from controller to view using tempdata:
    Temp Data is used to transfer data from controller to view.
    Passing Data Between Actions using TempData
    How to Show Popup MessageBox in Webform or Webpage in Asp net c# and Asp.Net core
    Show Success Message after submitting data in ASP.Net Core
    show notification Message

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

  • @nakibrahaman2228
    @nakibrahaman2228 4 หลายเดือนก่อน

    data-dissmiss is not not working with latest bootstrap I just found it should be data-bs-dismiss in the popup modal for closing the popup window. Great tutorial by the way.

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

    Thank you very dear sir;
    i really appreciate your efforts for us, never forgetttable your helps.

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

    Nice tutorial, I've just subscribed.

  • @bl7937
    @bl7937 3 ปีที่แล้ว +2

    Great video! Thank you for sharing.
    Any update on when you will release Part 3 for “ASP.NET Core MVC dynamic rows” tutorial.

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

      You are Most welcome! Stay Tuned.

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

      @@CodeSbyAniz thank you, sorry for keeping asking about how to perform Part 3 CRUD Operations from the tutorial you created “ASP.NET Core MVC Dynamic rows”.just very excited to see how you do that.

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

    Not working data-dismiss="modal". Button X and Close are not working! Do you not know how to solve this problem? But a simple click on the field around closes the modal window, but there is no button.

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

      And everything is fine! I have already found a solution, everything works! 👍😁

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

    Hi Aniz, this series is superb. I got to learn much watching this series. One request, can you create video for column based filter. For example, we can filter Product category as mobile and price under 30000. Such a feature will be very useful. Thanks

  • @nakibrahaman2228
    @nakibrahaman2228 4 หลายเดือนก่อน

    For the error no popup shown I think some part of the code are missing here for open the modal when we got error. Also After I add the code for showpopup for error it only shows when I redirect to Index page. But what if I want to see it inside create page?

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

    A wonderful lesson! Thanks! :) Do you happen to know how to position your modal-dialog in the center of the page so that it is always centered even when changing the browser page frame? Thanks!

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

      And that's it, I've already done it in the center. 🙂

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

    Easily Understandable video sir. Is there any video you have regarding same view page for both create and edit actions?

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

    EXCELLENT Tutorial. Thank You.

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

      You are Most welcome! Stay Tuned.

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

    Hi, can you make a video to show us how and the best scenario to use Interfaces & Repositories class and how to use it in a project? your videos are very interesting and very informative as well. 💯
    Thank you

    • @CodeSbyAniz
      @CodeSbyAniz  3 ปีที่แล้ว +2

      Welcome, Please follow the inventory project. I am planning to bring all the features in the Inventory project. up to APIS and Microservices

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

      @@CodeSbyAniz I think this is going to be very useful. How about doing a POS (point of sales) with a series?

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

    What asp.net version you are using?
    Also can you tell me more about the programming u are using.. So i can follow and study your tutorial

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

      Asp .NET Core 5. which is the latest stable version. 6 is not yet released. but the same video will work even for the earlier and future versions. My development environment is windows with VS2019 16.10.4

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

    thanks for you tutoriel is perfect can you share your code to undrestand very well if you want thank you

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

      you are most welcome, the complete source code URL of this series is shown in the below URL.
      th-cam.com/video/fl7yNQBZXcE/w-d-xo.html

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

    Hi how can you close the view page in razor page when you click a button example?

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

      will upload a video on that in the future.

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

    Excellent tutorial, thanks !
    I downloaded the source code but I can not open the files, I can click on the file and enter the password that you provided in the other video but looks like it’s not working?

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

      You are most welcome. but password is shown in the video, so please watch without skipping the video.

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

      @@CodeSbyAniz Thanks for your reply. Yes, I watched and got password from the other video. I can download the file but after I unzipped the file, most of the folder are empty without files.

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

    Error Message Modal Doesn't Work .. did you add any addtional code in scripts ?

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

      complete source code URL is displayed in this video. so watch this video and download the source code to clarify your doubts.
      th-cam.com/video/gBHY0Jt8ZjQ/w-d-xo.html

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

    When i clicked on name column heading for sorting paging number initialize to 5... I have changed paging number 10 before sorting... Pls help me.....

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

      Thanks for watching. This is already fixed. please watch the next video of this series. you need pass the page number also in the search button. anyway the source code of this already given. so download and compare it with your source.
      th-cam.com/video/k5USpRrQhM8/w-d-xo.html

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

    Hi, can you share the project folder please.. I need it for my homework

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

      Complete code shown in the video , moreover the code link is shown in this video. th-cam.com/video/ZXynHdk35fU/w-d-xo.html

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

    Also kindly add in title on part what u are?
    Example this video
    Part6: and so on

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

      Thanks for the suggestion. Added the prev and next links in the description. You can also follow the playlist.

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

    when i switch pages modal still showing

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

      Clear the tempdata. at the begining of the action.