开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜