rest - What is "posted" in ASP.NET MVC applications? -


As I have reviewed more code and blog posts than many MVC sources, I still post "my mind" "When a request is made, I realize that MVC does not support the post, but I am having trouble finding resources that can understand enough to understand it.

Controller's Index under the name of the public functioning (here goes?) {...} What are my parameters?

Sometimes it looks like this scene

Sometimes, this is a studio scaffolds for (int) (Ent ID, MyObject myobject) < / Code> for an editing-style action - this includes anything from my model. ID, form collection collection) Why not use modeling object here for a removable style action? Is a formulation object always "posted"?

Occasionally, I see the (Routinfo route ink) which is not recognized in my MVC 2 Intelligence (is it only MVC 1 or something else?).

How do I install these parameters? I think this design will be very helpful at the time I get it.

What is a form data in MVC that is posted back from a form in which an important value pair Each form element is included.

If you only need this information, then you will use it:

  public function name name (string name, string last name, string etc.)  

MVC has some smart data model binding, which takes form data and automatically creates the object that is part of your domain model. For example, it could create an individual's object with automatically provided form data.

I believe there is a safety concern as a user of your site, which can post data which is not part of your form and guess what your model has its own data I do not think this is a big issue, and this is the only way I go.

I think that you can use anti-counterfeiting helpers to prevent data from being posted back, which is not allowed in any form.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -