|
| kskumar75 : On August 23, 2008 3:51 AM said: |
This article is helpful for starters.
|
|
|
|
|
|
|
| ngd : On August 26, 2008 7:24 AM said: |
|
|
|
|
| retroviz : On August 26, 2008 5:16 PM said: |
Very good. This is my first look at the MVC framework and was a great eye opener. Thanks
|
|
|
| de_deva : On August 28, 2008 5:33 AM said: |
Thanks for the video about MVC Architecture with simple application. Hope we will get some more detailinsight of MVC.
-Devaraj Diraviyam
|
|
|
| pr0ph3t : On August 29, 2008 1:19 PM said: |
Thanks for the video Stephen but i have some small error at the last stage where I'm using complete action. This is what i see at url whle hovering over link '/Home/Complete/1' but when i click on it throws an error that Complete got a null as parameter.
This could be because im using MVC3 or some mistake with C#. Dunno.
Thanks for help in advance.
|
|
|
| swalther : On August 29, 2008 8:38 PM said: |
@pr0ph3t - Thanks for watching my video! I don't know why null is getting passed. It looks like from your description that the URL that invoked the Complete() action includes an ID. I just downloaded the Tasklist app (the C# version) and I wasn't able to reproduce the issue. However, I keep switching up to later MVC previews -- so it might be an issue with Preview 3.
-- best,
Stephen Walther
|
|
|
| muhammad.hasham : On September 04, 2008 5:08 PM said: |
Can we get a similar video with C#?
|
|
|
| JohnAClee : On September 07, 2008 8:26 AM said: |
Great tutorial, good introduction to MVC! Certainly food for thought.
|
|
|
| aelien : On September 09, 2008 4:35 PM said: |
Thanks, it's a great intro to .net's MVC, just one newbie question, why the ViewData property used to pass data from controller to view is called "Model" ?
|
|
|
| fizzer : On September 12, 2008 2:15 PM said: |
All works great. But why do I get a syntax error for this:
<a href="/Home/Complete/<%= task.Id.Tostring()%>">Complete</a>
<%= task.EntryDate.ToShortDateString()%> -- <%= task.task %>
Noticed it's also highlighted as a syntax error in the video. Is this a bug? 'Name _o is not declared'??
|
|
|
| swalther : On September 13, 2008 8:05 PM said: |
|
|
|
|
| amanprogrammer : On September 16, 2008 2:29 PM said: |
Good Tutorial. Good Introduction to Model View Controller. Thanks a lot.
-
Aman
|
|
|
| ashrafur : On September 21, 2008 5:44 AM said: |
nice tutorial, described in details and very clean voice. Thanks
|
|
|
| entlib : On September 21, 2008 12:00 PM said: |
|
|
|
|
| jakobb : On September 21, 2008 8:44 PM said: |
Nice tutorial. I have two questions though:
1) Won't the first search engine spider to arrive on the site complete all of the tasks?
2) Can the LINQ to SQL class be converted into a regular class? Or where would you put validation or other model-specific logic?
Thanks.
|
|
|
| nnahmed : On September 22, 2008 12:43 AM said: |
|
|
|
|
| swalther : On September 22, 2008 12:45 PM said: |
@jakobb - Really great questions!
(1) The newest preview of MVC (Preview 5) includes a new attribute that you can apply to an action named AcceptVerbs. You can use this attribute to limit the types of HTTP operations that can invoke the action (for example, AcceptVerbs("POST")).
(2) You have the option of using POCO Linq to SQL classes. I have a blog entry on this subject here:
weblogs.asp.net/.../asp-net-tip-23-use-poco-linq-to-sql-entities.aspx
I'm working on a separate video on validation.
-- best,
Stephen Walther
|
|
|
| jakobb : On September 22, 2008 6:08 PM said: |
Thank you. This looks very promising so far - I will look into POCO LINQ to SQL.
|
|
|
| khilit.prajapati : On September 23, 2008 12:13 AM said: |
thank you for good explaination about MVC.
khilit
|
|
|
| vladL : On October 01, 2008 11:54 AM said: |
Guys, I have a question. I did this lesson, all turned out great thanks to the author! But I want your computer to use this program! It works only if Visual Studio led to the launch ... And how do so without the issuance of TaskList Internet - how to use the program on a computer without running Visual Studio?
|
|
|
| atarikg : On October 02, 2008 5:11 PM said: |
thanks...it's very helpful for starters.
|
|
|
| 630r63 : On October 02, 2008 5:32 PM said: |
Good video, easy to follow, but why the syntax error?
'Name _o is not declared'?
In the section of:
<a href="/Home/Complete/<%= task.Id.Tostring()%>">Complete</a>
<%= task.EntryDate.ToShortDateString()%> -- <%= task.task %>
|
|
|
| manicmarc : On October 13, 2008 8:14 AM said: |
I'm sure this is very useful but like millions others I don't have speakers at work so I can't hear anything!
|
|
|
| manicmarc : On October 13, 2008 2:41 PM said: |
Well I watched it at home, very useful - thanks very much.
It's a very different method of doing things when compared to standard webforms.
I would have used a repeater and a label object, which wouldn't be half as clean in the HTML. One thing I didn't get was how the Complete action knew the ID was called ID.
Good point by the person who said a search engine spider would mark everything as complete, but I think that was an example for simplicity's sake. In reality I think you'd want a checkbox by each one, you'd probably want a due date too. The point of the article was to show how ASP.NET MVC works not how to build a tesk list application :).
|
|
|
| livEliveD : On October 15, 2008 6:40 PM said: |
Very nice and very clear!
It would be great to get an article/video on multiple form values including security (only updatable by a logged on user).
One question, do you have to use the (old) method of plain html form posting? Aspx does nice things with view state and such which you seem to lose with going back to HTML.
|
|
|
|
|
| refresh : On October 17, 2008 11:28 PM said: |
I have a problem, as I am using the beta there is also an Accounts controller and associated views, so I delete them to get back to the bare-bones. When I run the application though I get this:
Bad IL format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.BadImageFormatException: Bad IL format.
Source Error:
Line 12: ' (2) URL with parameters
Line 13: ' (3) Parameter defaults
Line 14: routes.MapRoute( _
Line 15: "Default", _
Line 16: "{controller}/{action}/{id}", _
Source File: C:\Users\Gareth\Documents\Visual Studio 2008\Projects\MvcApplication1\MvcApplication1\Global.asax.v b Line: 14
Can anyone help?
|
|
|
| dpant : On October 18, 2008 2:41 PM said: |
I use asp.net for year. You claim MVC is here to better separate concept layers, among other things. Please, explain to me where this separation is Listing 5 of your example (www.asp.net/.../tutorial-01-cs.aspx).
Right now, it all looks like classic asp inter-mix of html and code logic to me.
Back to the future ...
|
|
|
| swalther : On October 19, 2008 5:49 PM said: |
@refresh -- Try doing a clean rebuild in Visual Studio (from beneath the Build menu). This error happens to me when upgrading from one version of ASP.NET MVC to the next.
|
|
|
| swalther : On October 19, 2008 5:54 PM said: |
@dpant -- Listing 5 maintains a separation of concerns because it contains only view logic and not business or data access logic. The foreach loop is used to display each of the records from the database. It is legimate to have view logic within the view.
My guess is that you don't like the fact that the page looks like a classic ASP page (and I agree with you on that). You can clean up the appearance of the view by taking advantage of a partial to create a template. See tutorial #11, Displaying a Table of Database Records"
www.asp.net/.../tutorial-11-vb.aspx
Hope this helps!
Stephen
|
|
|
| j-will : On October 20, 2008 5:02 AM said: |
|
|
|
|
| gatoress : On October 21, 2008 9:52 AM said: |
Great video- Explianed the concepts clearly and effectively.Thanks!
|
|
|
| shobman : On October 26, 2008 11:53 AM said: |
I seem to be having the same problem as pr0ph3t after in re-writing your solution using c#. The complete link is '/Home/Complete/1'. The action result in my home controller is expecting taskId as int, but when i click the link it bombs out saying that taskId is null.
I was running preview 5 and have just upgraded to beta. Any ideas?
|
|
|
| kiruba.sankars : On October 29, 2008 2:25 PM said: |
Great Video
Good Concepts
|
|
|
| jimmyfingers101 : On November 10, 2008 2:59 PM said: |
I'm really enjoy your tutorials but have a quick query for you...
On completing the TaskList app I noticed that in my Index.aspx, in order for me to use foreach(Task task in (IEnumerable.... I need to use the full qualifying name for Task, ie foreach(TaskList.Models.Task task in (IEnu......
My code is word for word like yours, and I even downloaded the code which works perfectly as per your instructions (without the fully qualified name). But when I create the app myself I need to use the fully qualified name for Tasks as it can't recognize the type Task without. Can you think of any reason why this would be happening? My view has exactly the same Using statements as per your instructions.
Many thanks,
James
|
|
|
| victortumbel : On November 11, 2008 10:56 PM said: |
Good concept...
Great Video...
www.inti.ac.id
www.sansinosoftware.com
www.kchrysant.com
www.ktpasirindo.com
www.binaman.co.id
|
|
|
|
|
| agarwaen : On November 16, 2008 8:33 AM said: |
Isn't that snippet completely wrong? (I might be wrong being a C# guy;-)
Function Complete(ByVal Id As Integer) As ActionResult
dim tasks = From t In db.Tasks Where t.Id = Id
For Each Match In tasks
Match.IsCompleted = True
Next
db.SubmitChanges()
Return RedirectToAction("Index")
End Function
---------------
1. why do you iterate over the tasks, when all you get from the database using Linq query is just 1 (and only 1) task? Id is a primary key in the database (should be unique).
2. action Complete is called only on clicking on 1 (and only 1) link, thus only 1 task is passed from the View, I can't understand your iteration, sorry...
|
|