Home > Web Front-end > HTML Tutorial > Data binding methods such as Eval(), XPath(), and Bind() can only be used in the context of a data-bound control_html/css_WEB-ITnose

Data binding methods such as Eval(), XPath(), and Bind() can only be used in the context of a data-bound control_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:58:15
Original
1985 people have browsed it

The background code can be displayed normally when writing Eval("cbr") == "" ? "Distribution" to
because the status of the logged-in person needs to be judged. To add a judgment, replace it with
<%= Session["yhlx"].ToString() == "KZ" ? Eval("cbr") == "" ? "Distribution" : "" : ""%>
, the page error is as follows,
Data binding methods such as Eval(), XPath() and Bind() can only be used in data binding used in the context of the control.
Has anyone encountered this problem?


Reply to discussion (solution)

Problem solution

">Added this

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template