首页 > 代码库 > 前后台交互

前后台交互

前台:document.getElementById("<%=this.hidPicID.ClientID %>").value = http://www.mamicode.com/3;
     document.getElementById("<%=this.btnSearch.ClientID %>").click();
      <asp:HiddenField ID="hidPicID" runat="server" />
     <asp:Button ID="btnSearch" runat="server" Text="查询 onclick="btnSearch_Click" />
后台: protected void btnSearch_Click(object sender, EventArgs e)
        {
            BindCommentDatas(this.hidPicID.Value);
        }