C# MVC Dropdown-3 Dynamic Dropdown Binding from DB using ViewBag, ViewData, TempData

preview_player
Показать описание
In this video,

I have explained how to use Dynamic Dropdown Binding from DB using ViewBag, ViewData, TempData

SQL Server Playlist

C# MVC Playlist
Рекомендации по теме
Комментарии
Автор

Thank you so much sir, this is the only video that helped me... i was looking exactly as explained in this video .. new subscriber sir.. as i can see your latest video is about 1 year ago.. please make more videos sir ..

moonlight-qenb
Автор

hey, can you teach on the topic please?

this project, you
will build a data-driven web app that uses view models to pass data from controllers to views, ViewData and ViewBag to pass data from views to the layout, and TempData to persist data between requests.
Specifications
• When the app starts, it should display trip data and an Add Trip link.
• The layout for this web app should display a banner at the top of the page and a subhead below it. However, the subhead should only display if there's text in the ViewBag SubHeader property.
• When the user clicks the Add Trip link, a three page data entry process should start.
• On the first page, the user should enter data about the trip destination and dates. All the fields on this page should be required.
• On the second page, the user should enter data about the accommodations. The accommodations the user entered on the first page should display in the subhead, and the Phone and Email fields on this page should be optional. To make a string field optional, use the ? operator.
• On the third page, the user should enter data about activities to do on their trip. The destination the user entered on the first page should display in the subhead, and the fields on this page should be optional.
• When the user clicks the Next button on the first or second page, the web app should save the data posted from the page in TempData.
Use this data to get the user entries to display in the subheads as needed, but make sure any data that needs to be saved to the database persists in TempData.
• When the user clicks the Save button on the third page, the web app should save the data posted from the page and the data in TempData to the database. Then, the Home page should display with a temporary message that the trip has been added.
• When the user clicks the Cancel button on any of the Add pages, the data in TempData should be cleared and the Home page should display. You can use this statement to clear the data:
TempData. Clear () ;
• To keep things simple, store all fields for the trip in a single database

dorisjjabbah
Автор

Sir agar me chahta hoon ki states ek dropdown hai usme saare states aa jaye according to country jo humne choose kiya hai. Any hint/code for that?

ankushshah
Автор

Hello sir I have choose BCA course any suggestions for me

singhfitnessclub
join shbcf.ru