MVC | Passing DATA from Controller to View

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ต.ค. 2024
  • Discover how to send data to the view from your ASP.NET MVC controller in an efficient manner. Important techniques including ViewBag, ViewData, highly typed models, and TempData are covered in this session. Learn the best ways to pass various kinds of data, such as collections, complicated objects, and basic values. Learn the craft of writing MVC apps that are effective, streamlined, and easy to maintain.
    👨🏻‍🏫 This complete tutorial is compiled by Sandeep Soni, a Microsoft Certified Trainer, a Software & Corporate Trainer for 27years!
    For more Training Courses Visit: www.bestitcour...
    📲 𝗖𝗼𝗻𝗻𝗲𝗰𝘁 𝘄𝗶𝘁𝗵 𝘁𝗿𝗮𝗶𝗻𝗲𝗿👋
    Call Sandeep Soni for Career Guidance ► +91 98490 01840
    Connect with me on LINKEDIN ► / sandeepsoni123
    👍 𝗗𝗼𝗻'𝘁 𝗙𝗼𝗿𝗴𝗲𝘁 𝘁𝗼
    Like the video if you found it helpful.
    Hit the bell icon to get notified of our latest videos.
    💬 Join the Conversation
    Have questions or need further clarification? Drop a comment below, and we'll be happy to help!
    🌐 𝗙𝗼𝗹𝗹𝗼𝘄 𝗨𝘀:
    𝗜𝗻𝘀𝘁𝗮𝗴𝗿𝗮𝗺 - / bestitcourses
    𝗙𝗮𝗰𝗲𝗯𝗼𝗼𝗸 - / deccansofthome
    𝗧𝘄𝗶𝘁𝘁𝗲𝗿 - x.com/deccansoft
    𝗧𝗲𝗹𝗲𝗴𝗿𝗮𝗺 - t.me/joinchat/...
    𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 𝗚𝗿𝗼𝘂𝗽 - chat.whatsapp....
    🔔 Subscribe for more
    Stay tuned for more in-depth tutorials and DevOps content to help you ace your certification exams and excel in your career.

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

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

    Thx, that was useful

  • @miguelquintana8573
    @miguelquintana8573 6 ปีที่แล้ว

    Nice video and very useful!! was using hidden inputs to pass data to Controller!

  • @kumarasisdethi8444
    @kumarasisdethi8444 5 ปีที่แล้ว

    good explanation sir ,kindly upload more video and angular js video also.

  • @vikaskashyap1074
    @vikaskashyap1074 5 ปีที่แล้ว

    Thank you sir for this video

  • @noorrehman2646
    @noorrehman2646 6 ปีที่แล้ว

    Nicely explained

  • @developernader
    @developernader 8 ปีที่แล้ว

    Thank you very much

  • @reshmavishe
    @reshmavishe 6 ปีที่แล้ว

    Sir, how to pass data of marquee tag from controller to view using stringbuilder??

    • @BestITcourse
      @BestITcourse  6 ปีที่แล้ว

      Reshma Vishe use ViewData

  • @sivakrishna1489
    @sivakrishna1489 7 ปีที่แล้ว

    i have a question for you .....already we have ViewData then why need to implement ViewBag in later on version of MVC3?there is small difference in between ViewData and ViewBag!!! that is important one, you've missed that topic...Any way Nice explanation buddy.. :-)

    • @abhishekchaube5773
      @abhishekchaube5773 5 ปีที่แล้ว

      ViewData uses string, so if any spelling mistake the user will only understand at runtime, whereas viewbag uses object, so any spelling error will br detected in compile time

  • @user-rp9iis1en6h
    @user-rp9iis1en6h 6 ปีที่แล้ว +1

    how to pass a customer list from controller to view?

  • @yogeshvaidya5895
    @yogeshvaidya5895 5 ปีที่แล้ว

    how i pass data to oneController ActionResult Creat[post ] to TwoController Creat[Get] view

    • @BestITcourse
      @BestITcourse  5 ปีที่แล้ว +1

      You can't post form to two action methods at a time.

    • @yogeshvaidya5895
      @yogeshvaidya5895 5 ปีที่แล้ว

      thanks , i solved this to using TempData and then TempData keep methode ,

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

    6:37 ViewBag and ViewData are not the best way of passing data to the View from controller. Rather they should be the least preferred and used rarely. Excessive requirement of Viewbag or ViewData or TempData indicates a poor design.

  • @zafarawan7539
    @zafarawan7539 5 ปีที่แล้ว

    #101415338