<asp:GridView runat="server" ID="gvCheckList" AutoGenerateColumns="false"> <Columns> <asp:BoundField HeaderText="订单号" DataField="planid" /> <asp:BoundField HeaderText="订单状态" DataField="status" /> <asp:BoundField HeaderText="总价(元)" DataField="totalCost" /> <asp:TemplateField HeaderText="订单操作"> <ItemTemplate> <input type="button" value="编辑" onclick='<%#"location.href=\"CheckUpdate.aspx?planid="+Eval("planid")+"\";"%>' /> <input type="button" value="删除" /> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView>