TextBox中的内联asp.net没有编译

时间:2015-06-01 11:02:00

标签: c# jquery asp.net

您好我已经创建了一个jquery脚本,它将文本框设置为autoCompletebox,并且它运行良好。 为了使这个脚本有效,我想在jqvalue中获取Value HiddenField ClientID,在jqbutton中获取OnSelect触发按钮。

 <asp:HiddenField ID="vendorIDField" runat="server"   />
 <asp:TextBox ID="TextBox1" runat="server"  CssClass="jq-autocbox absfields" pos="c3 r2" igaddl="nofield" jqvalue = "#<%= vendorIDField.ClientID %>" jqcontainer = ".form-content" jqURL = "GetLists.ashx" jqcommand = "GetVendors" jqbutton = '#<%= Button2.ClientID  %>' Width="250px" ></asp:TextBox>
 <asp:Button ID="Button2" runat="server" Text="Button" />

但是ClientID没有编译。在浏览器中,它看起来像我在单引号内键入的内容。

0 个答案:

没有答案