English 中文(简体)
你们如何通过清单目录的所有内容?
原标题:How do you pass all the contents of a ListBoxFor?

目前,我对一份清单Box表格进行了无数的收集,该清单按预期运作,发送了目前选定的持久性有机污染物数值。 然而,我需要把所有价值观(主要是特定名单Box的任何价值,我认为这些价值无论是否选定都需要)。 我怎么做呢?

(我可能将一些东西加在 j,在提价时,用人工方式选择盒子中的所有内容,但想知道是否有更好的方法。)

最佳回答

如果你想继续使用正常的浏览器形式,在提交之前,写上一种 j印功能,以火上.(h入一个浮标事件或某件),通过清单箱控制,使预想的数值(或许是 com的)趋于一致,并将其置于一个隐蔽的领域。 这种隐蔽领域的价值将通常提交,而且你可以把其个人价值从服务器上抹掉。 这仍然是一些手工工作,但你避免与德国马克邦(即选择所有希望的清单箱子)混为一谈,我同意这是你不想做的事。

问题回答

暂无回答




相关问题
WebForms and ASP.NET MVC co-existence

I am trying to make a WebForms project and ASP.NET MVC per this question. One of the things I ve done to make that happen is that I added a namespaces node to the WebForms web.config: <pages ...

Post back complex object from client side

I m using ASP.NET MVC and Entity Framework. I m going to pass a complex entity to the client side and allow the user to modify it, and post it back to the controller. But I don t know how to do that ...

Create an incremental placeholder in NHaml

What I want to reach is a way to add a script and style placeholder in my master. They will include my initial site.css and jquery.js files. Each haml page or partial can then add their own required ...

asp.net mvc automapper parsing

let s say we have something like this public class Person { public string Name {get; set;} public Country Country {get; set;} } public class PersonViewModel { public Person Person {get; ...

structureMap mocks stub help

I have an BLL that does validation on user input then inserts a parent(PorEO) and then inserts children(PorBoxEO). So there are two calls to the same InsertJCDC. One like this=>InsertJCDC(fakePor)...

ASP.NET MVC: How should it work with subversion?

So, I have an asp.net mvc app that is being worked on by multiple developers in differing capacities. This is our first time working on a mvc app and my first time working with .NET. Our app does not ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

热门标签