|
| sitrucious : On May 27, 2008 10:22 PM said: |
Scott looks really tired in this video. Is MVC keeping him up late?
|
|
|
| shanselman : On May 28, 2008 12:50 AM said: |
Heh, sorry, my sons were very sick the week I filmed this and I think I got 8 hours of sleep the whole 40 hour week. I'll be fresher next video. :)
|
|
|
| Englestone : On May 28, 2008 11:18 AM said: |
Can you give us any clue as to when we can expect support for the Unit Testing frameworks you mentioned?. i.e. NUnit, MBUnit?
-- Lee
|
|
|
| pbz : On May 28, 2008 1:27 PM said: |
Thanks Scott.
How do you handle the scenario where let's say there's a problem with the data that comes back from the browser? Let's say they put a letter where a number was expected. Do you render that product edit page again? I guess if you post back with the current data you sort of simulate the ViewState, right?
And what about when you have a complicated page, kind of like a portal. Who's the controller then since you have multiple things going on?
Thanks. (I hope you catch some sleep)
|
|
|
| alivemedia : On May 29, 2008 10:39 AM said: |
Shouldn't you make sure that the update comes from a POST and not a GET?
|
|
|
| shanselman : On May 30, 2008 12:42 AM said: |
Englestone - There is already support for those Unit Testing tools. The support of course, is just the getting in the dropdown. ASP.NET MVC supports any Unit Testing tool.
MbUnit announced support and released it with their installer here: weblogs.asp.net/.../microsoft-mvc-and-mbunit.aspx
xUnit.NET supported it with v1.0.1 www.codeplex.com/.../ProjectReleases.aspx
I'm not sure about nUnit, but as I understand it, it's on Charlie Poole's list of things to do. However, you can use it with NUnit now, happily, you just don't get nUnit in the dropdown.
pbz - That's a design question. Personally, I'm a big fan of client-size validation like http://www.livevalidation.com or VAM from http://www.peterblum.com. I would never let the bad post be sent in the first place, and I'd probably put a scrubber in trouble (like a filter) to watch for evil.
AliveMedia - Good point! That should probably be a constraint on the route. I'll make sure to get either a post or video about security. Thanks!
|
|
|
| agarwaen : On May 30, 2008 9:21 AM said: |
I'll repeat myself, can you be like in the year 2008 and offer iPhone or iPod touch screen resolution movies?
on the standard ones there's hardly anything possible to be seen, and think a minute. We're not using NANO to watch this movies do we?
hope it won't take MS a year to realize iPhone potential as a learning tool...now that 2nd gen is comming (with 3G).
thanks
P.S. I know I can download "bigger" content (with better resolution) but stil...
|
|
|
| JProgrammer : On May 30, 2008 12:57 PM said: |
Hi Scott, there a cue surrounding my mind, is about UI, lets see if i have a search, that needs to display the result in a grid, i think we needs datacontrols that supports fill and bind data with a object from viewdata dictionary, using ajax(for less request to the server mainly). AjaxDataControls without postback, viewstate or runat=server. This is just an idea and I'd like to be taken in consideration, Thanks!
Angel...
|
|
|
| pbz : On June 01, 2008 2:21 PM said: |
Scott,
Client-side validation should be there only for user experience. It should NOT be the only validation. In fact the server-side validation should come first then the client-side. JavaScript can be easily bypassed and if you do not have server side validation you are in trouble.
In any case, there are situations where server-side is the only way to validate. You have to check against a database, against other types of data etc. How do you handle this scenario with MVC without losing all the data that the user typed in the form?
Thanks.
|
|
|
| jun1st : On June 01, 2008 11:36 PM said: |
Hi Scott. In the test section, maybe not this video, I noticed that you didn't configure any data in App.config and the database. but when I was writing my own MVC sample, these setting were necessary. did I miss anything?
|
|
|
| shapper : On June 02, 2008 8:28 AM said: |
I am having trouble opening the WMV files with Windows Media Player ... It says a codec is missing.
Was any change in how the videos were created?
I never had this problem.
Thanks,
Miguel
|
|
|
| epimlea : On June 03, 2008 4:35 PM said: |
Hi Scott, all this videos are awesome!!, I’m learning a lot by tracking all the shows for this MVC Framework and so far I'm playing some stuffs with it.!!.
I wonder if this framework should be able to map the routes under a config section either at the web.config or on a separated file, instead of putting the code at the global.
Probably IoC, DI will work to set the controllers for the different actions they can handle, the idea is to plug controllers with enhanced actions or something like that.
Thanks,
Erick
|
|
|
| erbere : On June 04, 2008 8:30 AM said: |
Hi Scott, Thanks for all these great videos. I need more information about html helpers. In particular, SelectList sounds a bit strange. IT seems to work well with LINQ. But I need to hardcode a SelectList and I can't find a way to do it. Where can I get more information about html helpers in preview3?
|
|
|
| Nullable : On June 12, 2008 11:16 PM said: |
pbz - You're questions are really good, and I'm actually in the middle of writing an artcile (on Eels) that adresses those two "real world" issues. So I'm glad to see someone else asking those questions :)
I'll probably not be done untill next week, but the answer to your questions is basically this:
Question 1) What do you do with an "invalid" form? - Answer: No, you don't just render the 'edit form' from the 'update url'... what you do is set your error messages into the "TempData" property... then redirect back to your edit form. From there, check the tempdata for "ErrorMessage" (or whatever you call it).
NOTE: TempData utilizes your session model, so web farms, make sure you have your web servers talking!
Question 2) Who is the controller in the scenario of a portal site where there are many things going on? - Answer: This is a big question, and the scenario really will dictate the details (my article will cover some scenarios)... Typically though, an unrelated section (such as navigation... which has nothing to do with each particular view) would be handled in your Master Page, or a user control (being called from the Master Page).
Good to keep in mind that MVC doesn't work well with all scenarios.
Scott, any thoughts?
|
|
|
| Nullable : On June 12, 2008 11:20 PM said: |
erbere - When you say you need to "hard code" a SelectList... couldn't you just do the HTML yourself? I could be missing the scenario, but it sounds like you're just looking do some plain HTML (which is 100% acceptable in MVC).
|
|
|
| dw.egun : On June 13, 2008 12:01 AM said: |
I can't say anything other than good. Thanks Scott.
|
|
|
| vvvOlegvvv : On June 18, 2008 6:01 PM said: |
WoW. Perfect example of MVC. Thank you very much Scot!!!!!
|
|
|
| JayPatel512 : On July 08, 2008 6:34 AM said: |
Hello sir, I have started learning ASP.Net MVC since 1 month. I have downloaded the ASP.Net MVC Preview2 videos provided by you, but I was not able to practice on that as I cant find the link to download the ASP.Net MVC Preview 2 .. So please can anyone provide the MVC Preview 2 download . . .
Please. . .
|
|
|
| becker-samm : On July 10, 2008 10:28 AM said: |
I cut out query strings a long time ago. Seems that this model not only lets a user decide which product to update, but also which controller method to call. I would be interested in how the mvc security model will address this issue.
|
|
|
| okieston : On August 10, 2008 5:55 PM said: |
Hello, can someone please tell me how I can get something like this: {Controller}/{Action}/{id}/{anotherVariable}.
Thanks
|
|
|
| cv_vikram : On August 27, 2008 12:34 PM said: |
|
|
|