Building ASP.NET MVC Forms with Razor (ASP.NET MVC Foundations Series)

preview_player
Показать описание
More info and downloads:

In this ASP.NET MVC Foundations screencast, we're going to look at building an ASP.NET MVC page which allows users to create and edit objects in our domain. We'll cover just the basics of using HTML helpers to map model properties to our HTML form and Model Binding to convert our HTML form back into our rich domain object.

We'll start with a very basic store website which has read-only data and we'll add the ability to create and edit products in our store. See the original blog post here:
Рекомендации по теме
Комментарии
Автор

you explained things so nicely, which others tend to "skip" over. Thanks bud!!

theDIGITALperception
Автор

Hey Michael, Thx for this great tutorial, please don't stop! Greetings from Switzerland
Brg Michael ;)

elextremo
Автор

Hi there.

Thanks for the comment. SOMETIMES this is true. Consider the following model:

class Book {
public string Name {get; set;}
public PageCount {get; est;}
}

You do not need to create that one. But what if you want to pass in default values? For example:

class Book {
public string Name {get; set;}
public PageCount {get; est;}
public string Author {get; set;}

public Book(string author) {
Author = author;
}
}

Then you do. Similarly if you want to chose constructors, etc

mikeckennedy
Автор

Thanks Micheal for sharing such a practical video tutorial....Please keep updating your list ... would request you to please upload something related to .

1. Create a registration form (which you have covered)
2. Send confirmation mail to email
3. Session creation
4. Search item
5. Filter Search items.

deepakfialok
Автор

Thank you for quick and solid introduction.

godvad
Автор

Very well made and explained video. Thanks very much!

esond
Автор

This is an old video and I understand that. I am commenting to provide my thoughts. Using IDE shortcuts, in my opinion, can cause serious confusion. At 01:20, you mention "importing a namespace", which to your credit is helpful; however, since you did not actually do/show what you were talking about, the example may have already lost some people.

I get it too that someone programming in .NET should know about namespaces but I maintain that a tutorial should be as straightforward as possible. I was watching a video some time ago where a guy was using "ctor" to build constructors and add using statements in files that he was not actually working in. Took me some time away from the tutorial to understand why my code wouldn't build.

Never-the-less, thanks for sharing this. It is helpful so far.

kevinm
Автор

Great explanation easy for beginners 👍

yourrod
Автор

Right, ok. So I think that's plenty of background to take the class. It is in C# but basically, it's more about the APIs, Razor, etc. Not the language. Check it out in the updated description.

mikeckennedy
Автор

Thank you  it is great help for new comer on MVC

mailmesai
Автор

Hey Michael great screencast, explains a lot about views and how to show em up in UI. Can we implement ajax based submit button? (Instead of postback of form)

simphu
Автор

Excellent tutorial. You did a great job at explaining each step. Have you written any books on MVC forms?

sheryl
Автор

Hi Juan,

Sorry, I'm not sure what you mean exactly. Could you elaborate?

mikeckennedy
Автор

hi michael, great tutorial, however I encounter a problem with the type namespace Product. It generate errors, am I missing something?

years
Автор

Can you tell me what kinds of skills you need to have before attending this class?

nvarpness
Автор

Hi Michael, do you know some way to add the data from a Database to a dynamic table in razor?. I get the result of that data and I reach to put a column in a dropdown list, but I do not know how to put some of the columns of the select into a dynamic table.  I really appreciate your help.

grettelriverarojas
Автор

Where are the Model? for the example?

cejodrake
Автор

Hi Michael, do you have an example where you use something similar to a Dagridview? I need to create a report with a list of item base on a search criteria.

Thanks in advance

grettelriverarojas
Автор

Hey Michael, interestingly, I only know ASP.NET MVC and not ASP.NET Web Forms or anything simpler. Is it possible to make a simple form like this in plain old Web Forms? For example, if I had a portfolio site and I just want to use some CaptCHA and other input validation, but otherwise dont need any real server-side processing, I really don't want the complexity of MVC... But can this still be done with ASP.NET? Thanks.

EnduranceT
Автор

Hi..Michael...Can u help me out...how to write a code for create, edit & delete contacts using c# MVC4..Thanks in advance

amruthareddy