<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();
}提示错误时上下文找不到Edit
</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();
}提示错误时上下文找不到Edit
解决方案 »
- asp.net MVC3用户注销问题
- 一个很简单的东西令我非常郁闷不解
- 新手,谁能给我解释解释啥意思
- 关于FORM认证的问题,如果设置多个登录页面?
- ■■转换为数据类型为 int 的列时发生语法错误??该怎么弄好?
- 服务器端按钮能否调用javascript
- ORA-01858: 在要求输入数字处找到非数字字符
- Global.asax.cs里定时代码发到服务器上不能执行,本地可以执行
- .net把服务器的一个Excel文件保存到客户端
- 请问怎样在asp.net中使用自己写的.htc文件?
- 求DropDownList联动方法,第一个DropDownList改变属性值时改变第二个DropDownList,然后第二个DropDownList
- mvc js里面的页面跳转如何传参?
好久没用 也忘了
这都能编译过???????????