tag:blogger.com,1999:blog-6367112134390591724.post4943714083813481050..comments2024-03-23T10:06:12.663-07:00Comments on ITORIAN BLOG: DropDownList Helper Data Binding in MVCUnknownnoreply@blogger.comBlogger14125tag:blogger.com,1999:blog-6367112134390591724.post-88389433722337644822016-03-03T13:56:15.675-08:002016-03-03T13:56:15.675-08:00Hi,
I am trying your second approach and i am get...Hi,<br /><br />I am trying your second approach and i am getting this exception <br />There is no ViewData item of type 'IEnumerable' that has the key 'Source'.memhttps://www.blogger.com/profile/02137226724102800913noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-57502103604951796762015-05-27T22:58:38.116-07:002015-05-27T22:58:38.116-07:00NiceNiceAnonymoushttps://www.blogger.com/profile/12047643165340177147noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-12739317814057650402015-01-08T04:52:54.941-08:002015-01-08T04:52:54.941-08:00niceniceAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-58513957314045173092014-08-11T06:25:09.063-07:002014-08-11T06:25:09.063-07:00Nice ArticalNice ArticalUnknownhttps://www.blogger.com/profile/08069210487844634566noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-38365672484557183062013-02-18T15:33:12.632-08:002013-02-18T15:33:12.632-08:00While this code works, I feel that it tends to cau...While this code works, I feel that it tends to cause too many problems when people modify it. For example, if the user changes the code to pass the SelectList as an object in the ViewModel and calls it Country, MVC now generates a vague and difficult error about there being parameterless constructor. (Stack Overflow is filled with questions explicitly with this problem). I feel it's much Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-29075327635172359372013-02-11T12:46:47.140-08:002013-02-11T12:46:47.140-08:00Thanks, loads . . . I like the clean straightforwa...Thanks, loads . . . I like the clean straightforward outlay of this example. Some of the new features of ASP.Net 4 that you have demonstrated in the 'HTTP POST' routine especially with the "THANKS" subroutine call!!<br /><br />Thanks . . .!!<br />TomJ<br /><br />BTW: On another subject . . . Is there a easy way to change the format of the output fields from a VERTICAL position Anonymoushttps://www.blogger.com/profile/17951695663018012366noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-64057117824673275912013-02-11T11:17:39.964-08:002013-02-11T11:17:39.964-08:00post is ready here http://www.itorian.com/2013/02/...post is ready here http://www.itorian.com/2013/02/jquery-ajax-get-and-post-calls-to.htmlAbhimanyu Kumar Vatsahttps://www.blogger.com/profile/01536208807178853605noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-44075423117742453712013-02-11T04:43:55.629-08:002013-02-11T04:43:55.629-08:00Hari: I am going to write a blog post on jQuery Aj...Hari: I am going to write a blog post on jQuery Ajax calls by tomorrow, be tuned.Abhimanyu Kumar Vatsahttps://www.blogger.com/profile/01536208807178853605noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-2261612572004756502013-02-11T04:01:44.121-08:002013-02-11T04:01:44.121-08:00goodgoodAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-35435460488312497382013-02-11T02:47:24.732-08:002013-02-11T02:47:24.732-08:00Looks good!! Could you also tell how to do the sam...Looks good!! Could you also tell how to do the same thing with use of JQuery?Anonymoushttps://www.blogger.com/profile/15645052926254107575noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-14407314082265031982013-02-11T01:42:49.103-08:002013-02-11T01:42:49.103-08:00Accepting the Fields inside a dedicated Model clas...Accepting the Fields inside a dedicated Model class should be the right approach. <br />Also you can define the options in a model class and fill it insde a viewfactory class.<br /><br />public class ViewModel{<br />List Items {get; set;}<br />public string Item{get; set;}<br />}<br /><br />In get method fill the Items list with options, and accept viewmodel as paramter for Post method.<br /><br Mandeep Bhangunoreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-85311971894755234782013-02-08T02:49:05.645-08:002013-02-08T02:49:05.645-08:00Makes sense, is the purpose of having to action me...Makes sense, is the purpose of having to action methods on the controller because their might be another way that the fields would arrive (perhaps in a bound model) and you want to point all the post methods to a single "view" method?<br /><br />Thanks!Anonymoushttps://www.blogger.com/profile/03624055043316275862noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-86521600150041682662013-02-07T22:22:42.991-08:002013-02-07T22:22:42.991-08:00Thanks, Really nice post.Thanks, Really nice post.Om Prakash Bishnoihttps://www.blogger.com/profile/07205383029615008151noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-56895087368578646392013-02-07T01:59:51.500-08:002013-02-07T01:59:51.500-08:00niceniceAnonymousnoreply@blogger.com