开发者

How can i read post data from table in Asp.net MVC?

I have table name called Compnay and it has 10 cloumns. How can i read values inside ea开发者_StackOverflowch columns has user put it by user inferface (UI).

Thanks in Advance!!!


Need to Bind your class Name where property are with View page.

<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<**>" %>

When user click on Save Button page post to controller. There you need to read data in controller

Inside Controller

[HttpPost] Public ActionResult Save(** Variable) {

}

** Your Class Name where Property are.

I am not as good as other to explain this. But it's work fine.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜