在我的详细信息视图上按下提交按钮后,我收到此错误,该视图有两个数据绑定下拉列表。我不在代码中的任何地方使用 Eval 或 XPath,但经常使用 Bind。
Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.
Source Error:
[No …Run Code Online (Sandbox Code Playgroud) 我有一个表,其中的数据看起来类似于:
user type hours used --to make another column with this info available
2334 sick 10.000 2.000 8.000
2334 vacation 48.000 56.000 -8.000
2334 personal 0 8.000 0
1356 sick 0 16.000 -16.000
1356 vacation 80.000 0 80.000
1356 personal 14.000 14.000 0
4355 sick 4.000 1.000 3.000
4355 vacation 112.000 0 112.000
4355 personal 8.000 0 8.000
Run Code Online (Sandbox Code Playgroud)
我必须总结小时列中的值,但仅限每个用户.因此,用户2334可以获得58.000小时数,10.000 + 48.000 + 0但会花费66.000数小时的-8.000时间.