服务器控件
<asp:Label ID="lblZipCode" CssClass="PrimaryField" runat="server">Zipcode:</asp:Label>
直接添加
onkeyup ="javascript:AddOnKeyUp(this,'<%=ddlCountry.ClientID %>')"
貌似是不对的
但在.cs中添加
this.txtZipCode.Attributes.Add("onkeyup", "AddOnKeyUp(this,'" + ddlCountry.ClientID + "');");
这样就可以了 谁能告诉我这个是什么原因,谢了
<asp:Label ID="lblZipCode" CssClass="PrimaryField" runat="server">Zipcode:</asp:Label>
直接添加
onkeyup ="javascript:AddOnKeyUp(this,'<%=ddlCountry.ClientID %>')"
貌似是不对的
但在.cs中添加
this.txtZipCode.Attributes.Add("onkeyup", "AddOnKeyUp(this,'" + ddlCountry.ClientID + "');");
这样就可以了 谁能告诉我这个是什么原因,谢了
onkeyup="javascript:AddOnKeyUp(this,<%=ddlCountry.ClientID %>);"
貌似是少了"<"