ASP.NET MVC5 : Post Multiple Models To One View (use object)

ASP.NET MVC5 : Post Multiple Models To One View (use object)

Le Anh Tuan

9 лет назад

35,286 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@HunterLo25
@HunterLo25 - 06.08.2015 03:05

Very cool. Thank you for sharing

Ответить
@hm110136
@hm110136 - 15.09.2015 17:21

Thx Bro!

Ответить
@buraksecervideo
@buraksecervideo - 20.10.2015 03:10

amazing shot! Cool bro :)

Ответить
@asaad1985v2
@asaad1985v2 - 28.02.2016 21:32

thanks... 😊

Ответить
@abced89i
@abced89i - 04.03.2016 12:11

Cool Bro...

Ответить
@rickslayer
@rickslayer - 15.03.2016 14:00

TKs brow. clean and easy!

Ответить
@sheryl6016
@sheryl6016 - 21.03.2016 15:19

awesome tutorial for me, thank you! please keep them coming.

Ответить
@ahmedghanii2256
@ahmedghanii2256 - 21.04.2016 14:15

how to retrive dropdown list in view

Ответить
@minixneo3842
@minixneo3842 - 02.05.2016 11:43

Rất hay, cám ơn bạn. Nếu có thể bạn demo thêm các functions khác như create, edit, delete nữa thì hay biết mấy.

Ответить
@Vivalavidapool
@Vivalavidapool - 26.08.2016 19:03

I get an error that the
List < MVC_5_with_Entity_Framework.Models.ForumReply>
is a type, which is not valid in a current context :(

Ответить
@DizzyNinja21
@DizzyNinja21 - 14.09.2016 17:59

How do I create an object for one of the models on the particular view?

Ответить
@paulbogdanruncan8879
@paulbogdanruncan8879 - 16.09.2016 21:40

gg dude

Ответить
@PetarLiovic
@PetarLiovic - 31.10.2016 22:31

Thank you. I did it, but can you tell me is there any other way to solve this?
I'm little confused with this: List<blabla.Models.Genre> genre = Model.ToList()[0] as List<blabla.Models.Genre>;

Ответить
@Nizam_Ul_Mulk
@Nizam_Ul_Mulk - 04.11.2016 07:42

Good one...although I was looking for the logic...I was captured by the music... music is too inspiring :)

Ответить
@lifet4800
@lifet4800 - 26.01.2017 07:21

thanks

Ответить
@emilywagner6858
@emilywagner6858 - 27.01.2017 07:05

This is aweful. Use a ViewModel instead!

Ответить
@PankajKumar-qg5uq
@PankajKumar-qg5uq - 16.02.2017 11:23

Hello Sir,
Thank you for such a good video.

but when i try same
@model  IEnumerable<object>
@{
    List<OIMTRY01.Models.Message> MessageList = Model.ToList()[0] as List<OIMTRY01.Models.Message>;
    List<OIMTRY01.Models.Comment> CommentList = Model.ToList()[1] as List <OIMTRY01.Models.Comment>;
}

its gives null at MessageList and CommentList

Anyone any answer??

Ответить
@komica2
@komica2 - 09.04.2017 07:47

Thanks!!! It's real helpful to cross join table!!

Ответить
@verygood5377
@verygood5377 - 17.08.2017 16:41

Thanks. It is helpful and easy!

Ответить
@bondkgaber2646
@bondkgaber2646 - 13.10.2017 02:29

Thank you, great Job bro

Ответить
@dipesh7512
@dipesh7512 - 26.10.2017 09:59

it worked thanks bruh xD

Ответить
@thechizuck
@thechizuck - 19.12.2017 23:25

what a waste. and turn down that fuckin music!!!

Ответить
@jobh4682
@jobh4682 - 11.02.2018 03:26

lol, I love how he clicked on his song before doing the tutorial xD

Ответить
@csyayaki09
@csyayaki09 - 21.03.2018 14:07

I have exception That tell me " system.ArgumentOutOfRangeException. The index was out of bonds. It must not be smaller than the size of the collection. Someone help ?

Ответить
@pjthunder
@pjthunder - 30.05.2019 22:43

works wonderfully! thank you

Ответить