62,267
社区成员
发帖
与我相关
我的任务
分享<asp:LinkButton ID="LinkButton1" runat="server" CommandName="Edit" OnEditCommand="DataList1_EditCommand">确认接收</asp:LinkButton></td>
</tr>protected void DataList1_EditCommand(object source, DataListCommandEventArgs e)
{
if (e.CommandName==Edit)
{
bc.ExecSQL("UPDATE [file] SET examine = '已接收' WHERE fileID ='" + (int)DataList1.DataKeys[e.Item.ItemIndex] + "'");
DataList1.DataSource = bc.GetDataSet("select * from [file] where fileAccepter='" + Session["loginName"].ToString() + "' order by fileTime desc", "file");
DataList1.DataKeyField = "fileid";
DataList1.DataBind();
}
if (e.CommandName=="Edit")