摘要:
后台: //添加属性,JS代码用来判断回车键 SearchText.Attributes.Add("onkeydown", "if (event.keyCode == 13){aspnetForm.ctl00$ContentPlaceHolder1$btnSearch.click();return false;;return false;}"); 该文章... 阅读全文
摘要:
前台代码: <asp:GridView ID="gvbszn" runat="server" Width="100%" AutoGenerateColumns="False" OnRowCommand="GridView1_RowCommand" ShowHeader="False"> <Columns><asp:TemplateField FooterStyle-W... 阅读全文