RangeExpression.DataField 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置用于比较的字段。
public:
property System::String ^ DataField { System::String ^ get(); void set(System::String ^ value); };
public string DataField { get; set; }
member this.DataField : string with get, set
Public Property DataField As String
属性值
要用于比较的字段。
示例
以下示例演示如何在 AdventureWorks 数据库的“产品”表中搜索在“产品”表中的“价目表”列,查找在文本框中指定FromTextBoxToTextBox了标价的产品。
此代码示例是 演练:使用声明性语法在网页中筛选数据的大型示例的一部分。
<asp:RangeExpression DataField="ListPrice"
MinType="Inclusive" MaxType="Exclusive">
<asp:ControlParameter ControlID="FromTextBox" />
<asp:ControlParameter ControlID="ToTextBox" />
</asp:RangeExpression>
注解
范围表达式搜索指定区域的数据字段。