开发者

Does asp.net 4.0 webforms have url and form databinding?

开发者 https://www.devze.com 2023-01-08 03:05 出处:网络
I am not sure what this is called. If know know what it\'s called you can edit this post. asp.net mvc allows you to do this:

I am not sure what this is called. If know know what it's called you can edit this post.

asp.net mvc allows you to do this:

public ActionResult Index(FormCollection fc)
{
     Item.Add(fc);
     return View();
}

It is nice that in MVC the FormCollection object is开发者_Python百科 automatically populated with the relevant data. Is there anything like this in asp.net webforms?


Use the Request.Form property.

0

精彩评论

暂无评论...
验证码 换一张
取 消