开发者

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

开发者 https://www.devze.com 2023-02-08 04:16 出处:网络
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).

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

精彩评论

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