tag:blogger.com,1999:blog-5716364009216068026.post3083718475570153890..comments2024-03-05T02:36:50.891-08:00Comments on Adam Tuliper's Development Tips: Stop using MVC's ViewBag in most places, please!Adam Tuliperhttp://www.blogger.com/profile/10069537457575128626noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-5716364009216068026.post-9591390124927507672017-07-20T00:39:39.875-07:002017-07-20T00:39:39.875-07:00Thanks for sharing useful information. I am giving...Thanks for sharing useful information. I am giving <a href="http://mindqsystems.com/courses/21/dot-net-technologies.php" rel="nofollow">best MVC online training in Hyderabad</a><br /><br /><br /><a href="http://mindqsystems.com/courses/21/dot-net-technologies.php" rel="nofollow">MVC online training</a><br /><a href="http://mindqsystems.com/courses/21/dot-net-technologies.php" rel="nofollow">online MVC training</a><br /><a href="http://mindqsystems.com/courses/21/dot-net-technologies.php" rel="nofollow">asp.net with MVC training</a><br /><a href="http://mindqsystems.com/courses/21/dot-net-technologies.php" rel="nofollow">MVC training</a>Johnhttps://www.blogger.com/profile/02057617887171113109noreply@blogger.comtag:blogger.com,1999:blog-5716364009216068026.post-83694549423963321082016-02-16T01:42:27.972-08:002016-02-16T01:42:27.972-08:00Hello Adam, i watch your videos about MVC in youtu...Hello Adam, i watch your videos about MVC in youtube, and i like your style. but there is a question that no one answered well. Is ViewBag using cause performance problems, and can we fell relax to use ViewBag? if it is, whats your solution?Thanks in advance :)K2aNhttps://www.blogger.com/profile/16238587134335954050noreply@blogger.comtag:blogger.com,1999:blog-5716364009216068026.post-85657052882635941922016-02-16T01:41:58.995-08:002016-02-16T01:41:58.995-08:00This comment has been removed by the author.K2aNhttps://www.blogger.com/profile/16238587134335954050noreply@blogger.comtag:blogger.com,1999:blog-5716364009216068026.post-71805143990901805322012-11-20T23:39:54.930-08:002012-11-20T23:39:54.930-08:00Yes.Nice explanation.Good one about not to use Vie...Yes.Nice explanation.Good one about not to use ViewBag.<br />Use ViewModel instead of.Keep it up good work. Sampath Lokugehttps://www.blogger.com/profile/13193493511446234762noreply@blogger.comtag:blogger.com,1999:blog-5716364009216068026.post-81413087381505880132011-12-27T19:05:28.579-08:002011-12-27T19:05:28.579-08:00Hi Adam, I want to thank you for your time and con...Hi Adam, I want to thank you for your time and concern, yes, it make sense, I have a better understanding, I also made another research and I found more material to build Views with less code, specially the dropdownlist.<br />once again thank you.Gilmer Donishttps://www.blogger.com/profile/06184246168014271787noreply@blogger.comtag:blogger.com,1999:blog-5716364009216068026.post-34440549069449001862011-12-26T20:25:10.413-08:002011-12-26T20:25:10.413-08:00Hi Gilmer, Simply:
1. in your controller create an...Hi Gilmer, Simply:<br />1. in your controller create an instance of your ViewModel. This is just a model (some lightweight class with no persistence logic) that wont be used anywhere else but this controller and view.<br />2. populate the viewmodel.<br />3. send it to the view from your controller's method via "return View(yourViewModel)"<br />This is just like you see the examples that use a model, but instead of using an entity framework model (for ex.) you are creating your own class specific to this view and populating it. Am I making sense? If you have a specific question I can answer more on please let me knowAdam Tuliperhttps://www.blogger.com/profile/10069537457575128626noreply@blogger.comtag:blogger.com,1999:blog-5716364009216068026.post-32532840010967787772011-12-24T14:01:39.063-08:002011-12-24T14:01:39.063-08:00Hello Adam, I'm a begginer and I couldn't ...Hello Adam, I'm a begginer and I couldn't follow your examples here, so is it possible to have an example with more details?, let's say how to build the model, the controler and the view, to work the way you show us. I'm interesting in not to use the viewbag.Gilmer Donishttps://www.blogger.com/profile/06184246168014271787noreply@blogger.com