如何从基础设施组合中获取价值

发布于 2024-12-22 15:25:12 字数 186 浏览 4 评论 0原文

我在网络表单中使用 Infragistics igCombo。我使用 ASP.NET MVC 3 作为服务器端技术。我可以轻松绑定数据,但无法获取用户选择并发送到服务器的值。我想知道如何使用服务器端 API 或使用 Infragistics 的 JavaScript API 从组合中获取值。 Infragistics 未提供的任何其他解决方案都是可接受的。

I am using Infragistics igCombo in my web form. I am using ASP.NET MVC 3 as a server side technology. I can easily bind data but can't get the value which user selects and sends to the server. I want to know how to get values from combo using server side API or using JavaScript API of Infragistics. Any other solution which is not provided by Infragistics will be acceptable.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

鹊巢 2024-12-29 15:25:13

对于客户端,您可以使用类似于以下的代码:

value = igcmbo_getComboById(m_ComboId).getValue();

其中 m_ComboId 是在服务器端创建的包含控件 ID 的 javascript 变量:

"m_ComboId = '" + Combo.ID + "'"

对于值的服务器端访问,请使用组合的 DataValue 属性。

For the client side, you can use code similar to the following:

value = igcmbo_getComboById(m_ComboId).getValue();

where m_ComboId is a javascript variable created on the server-side containing the control's ID:

"m_ComboId = '" + Combo.ID + "'"

For server-side access of the value, use the DataValue property of the combo.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文